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
  • Field Details

  • Constructor Details

    • CommonOffsetContext

      public CommonOffsetContext(T sourceInfo)
  • Method Details

    • getSourceInfo

      public org.apache.kafka.connect.data.Struct getSourceInfo()
      Specified by:
      getSourceInfo in interface OffsetContext
    • markSnapshotRecord

      public void markSnapshotRecord(SnapshotRecord record)
      Description copied from interface: OffsetContext
      Mark the position of the record in the snapshot.
      Specified by:
      markSnapshotRecord in interface OffsetContext
    • 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 interface OffsetContext
    • 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 interface OffsetContext