Package io.debezium.relational
Class RelationalSnapshotChangeEventSource.SnapshotMarkerResolver
java.lang.Object
io.debezium.relational.RelationalSnapshotChangeEventSource.SnapshotMarkerResolver
- Enclosing class:
RelationalSnapshotChangeEventSource<P extends Partition,O extends OffsetContext>
Determines the appropriate SnapshotRecord marker based on record position.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static SnapshotRecordresolve(boolean isFirstInSnapshot, boolean isLastInSnapshot, boolean isFirstInDataCollection, boolean isLastInDataCollection) Resolves the snapshot marker for a record based on its position within the snapshot.
-
Constructor Details
-
SnapshotMarkerResolver
private SnapshotMarkerResolver()
-
-
Method Details
-
resolve
static SnapshotRecord resolve(boolean isFirstInSnapshot, boolean isLastInSnapshot, boolean isFirstInDataCollection, boolean isLastInDataCollection) Resolves the snapshot marker for a record based on its position within the snapshot.- Parameters:
isFirstInSnapshot- true if this is the first record of the entire snapshotisLastInSnapshot- true if this is the last record of the entire snapshotisFirstInDataCollection- true if this is the first record of the current table/data collectionisLastInDataCollection- true if this is the last record of the current table/data collection- Returns:
- the appropriate SnapshotRecord marker
-