public interface OffsetWriter
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close all resources used by this class.
|
void |
flush()
Flush latest offsets to disk.
|
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.
|
void |
markOffset(String sourceTable,
String sourceOffset,
boolean isSnapshot)
Update the offset in memory if the provided offset is greater than the existing offset.
|
void markOffset(String sourceTable, String sourceOffset, boolean isSnapshot)
sourceTable - string in the format of