Package io.debezium.pipeline
Class CommonOffsetContext<T extends BaseSourceInfo>
java.lang.Object
io.debezium.pipeline.CommonOffsetContext<T>
- All Implemented Interfaces:
OffsetContext
public abstract class CommonOffsetContext<T extends BaseSourceInfo>
extends Object
implements OffsetContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.debezium.pipeline.spi.OffsetContext
OffsetContext.Loader<O extends OffsetContext>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.kafka.connect.data.Struct
void
Signals that the streaming of a batch of incremental snapshot events will begin, which should reflect in an updated offset state.void
markSnapshotRecord
(SnapshotRecord record) Mark the position of the record in the snapshot.void
Signals that a snapshot has been completed, which should reflect in an updated offset state.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.debezium.pipeline.spi.OffsetContext
event, getIncrementalSnapshotContext, getOffset, getSourceInfoSchema, getTransactionContext, isSnapshotRunning, preSnapshotCompletion, preSnapshotStart
-
Field Details
-
sourceInfo
-
-
Constructor Details
-
CommonOffsetContext
-
-
Method Details
-
getSourceInfo
public org.apache.kafka.connect.data.Struct getSourceInfo()- Specified by:
getSourceInfo
in interfaceOffsetContext
-
markSnapshotRecord
Description copied from interface:OffsetContext
Mark the position of the record in the snapshot.- Specified by:
markSnapshotRecord
in interfaceOffsetContext
-
postSnapshotCompletion
public void postSnapshotCompletion()Description copied from interface:OffsetContext
Signals that a snapshot has been completed, which should reflect in an updated offset state.- Specified by:
postSnapshotCompletion
in interfaceOffsetContext
-
incrementalSnapshotEvents
public void incrementalSnapshotEvents()Description copied from interface:OffsetContext
Signals that the streaming of a batch of incremental snapshot events will begin, which should reflect in an updated offset state.- Specified by:
incrementalSnapshotEvents
in interfaceOffsetContext
-