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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.kafka.connect.data.StructvoidSignals that the streaming of a batch of incremental snapshot events will begin, which should reflect in an updated offset state.voidmarkSnapshotRecord(SnapshotRecord record) Mark the position of the record in the snapshot.voidSignals 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, waitMethods 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:
getSourceInfoin interfaceOffsetContext
-
markSnapshotRecord
Description copied from interface:OffsetContextMark the position of the record in the snapshot.- Specified by:
markSnapshotRecordin interfaceOffsetContext
-
postSnapshotCompletion
public void postSnapshotCompletion()Description copied from interface:OffsetContextSignals that a snapshot has been completed, which should reflect in an updated offset state.- Specified by:
postSnapshotCompletionin interfaceOffsetContext
-
incrementalSnapshotEvents
public void incrementalSnapshotEvents()Description copied from interface:OffsetContextSignals that the streaming of a batch of incremental snapshot events will begin, which should reflect in an updated offset state.- Specified by:
incrementalSnapshotEventsin interfaceOffsetContext
-