Package io.debezium.connector.cassandra
Interface OffsetWriter
-
- All Known Implementing Classes:
FileOffsetWriter
public interface OffsetWriterInterface for recording offset.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close all resources used by this class.voidflush()Flush latest offsets to disk.booleanisOffsetProcessed(String sourceTable, String sourceOffset, boolean isSnapshot)Determine if an offset has been processed based on the table name, offset position, and whether it is from snapshot or not.voidmarkOffset(String sourceTable, String sourceOffset, boolean isSnapshot)Update the offset in memory if the provided offset is greater than the existing offset.
-
-
-
Method Detail
-
markOffset
void markOffset(String sourceTable, String sourceOffset, boolean isSnapshot)
Update the offset in memory if the provided offset is greater than the existing offset.- Parameters:
sourceTable- string in the format of. .
sourceOffset- string in the format of: isSnapshot- whether the offset is coming from a snapshot or commit log-
isOffsetProcessed
boolean isOffsetProcessed(String sourceTable, String sourceOffset, boolean isSnapshot)
Determine if an offset has been processed based on the table name, offset position, and whether it is from snapshot or not.- Parameters:
sourceTable- string in the format of.
-
-