Class Db2OffsetContext

  • All Implemented Interfaces:
    io.debezium.pipeline.spi.OffsetContext

    public class Db2OffsetContext
    extends Object
    implements io.debezium.pipeline.spi.OffsetContext
    • Field Detail

      • sourceInfoSchema

        private final org.apache.kafka.connect.data.Schema sourceInfoSchema
      • snapshotCompleted

        private boolean snapshotCompleted
      • transactionContext

        private final io.debezium.pipeline.txmetadata.TransactionContext transactionContext
      • incrementalSnapshotContext

        private final io.debezium.pipeline.source.snapshot.incremental.IncrementalSnapshotContext<io.debezium.relational.TableId> incrementalSnapshotContext
      • eventSerialNo

        private long eventSerialNo
        The index of the current event within the current transaction.
    • Constructor Detail

      • Db2OffsetContext

        public Db2OffsetContext​(Db2ConnectorConfig connectorConfig,
                                TxLogPosition position,
                                boolean snapshot,
                                boolean snapshotCompleted,
                                long eventSerialNo,
                                io.debezium.pipeline.txmetadata.TransactionContext transactionContext,
                                io.debezium.pipeline.source.snapshot.incremental.IncrementalSnapshotContext<io.debezium.relational.TableId> incrementalSnapshotContext)
      • Db2OffsetContext

        public Db2OffsetContext​(Db2ConnectorConfig connectorConfig,
                                TxLogPosition position,
                                boolean snapshot,
                                boolean snapshotCompleted)
    • Method Detail

      • getOffset

        public Map<String,​?> getOffset()
        Specified by:
        getOffset in interface io.debezium.pipeline.spi.OffsetContext
      • getSourceInfoSchema

        public org.apache.kafka.connect.data.Schema getSourceInfoSchema()
        Specified by:
        getSourceInfoSchema in interface io.debezium.pipeline.spi.OffsetContext
      • getSourceInfo

        public org.apache.kafka.connect.data.Struct getSourceInfo()
        Specified by:
        getSourceInfo in interface io.debezium.pipeline.spi.OffsetContext
      • getEventSerialNo

        public long getEventSerialNo()
      • setChangePosition

        public void setChangePosition​(TxLogPosition position,
                                      int eventCount)
      • isSnapshotRunning

        public boolean isSnapshotRunning()
        Specified by:
        isSnapshotRunning in interface io.debezium.pipeline.spi.OffsetContext
      • isSnapshotCompleted

        public boolean isSnapshotCompleted()
      • preSnapshotStart

        public void preSnapshotStart()
        Specified by:
        preSnapshotStart in interface io.debezium.pipeline.spi.OffsetContext
      • preSnapshotCompletion

        public void preSnapshotCompletion()
        Specified by:
        preSnapshotCompletion in interface io.debezium.pipeline.spi.OffsetContext
      • postSnapshotCompletion

        public void postSnapshotCompletion()
        Specified by:
        postSnapshotCompletion in interface io.debezium.pipeline.spi.OffsetContext
      • markLastSnapshotRecord

        public void markLastSnapshotRecord()
        Specified by:
        markLastSnapshotRecord in interface io.debezium.pipeline.spi.OffsetContext
      • event

        public void event​(io.debezium.schema.DataCollectionId tableId,
                          Instant timestamp)
        Specified by:
        event in interface io.debezium.pipeline.spi.OffsetContext
      • getTransactionContext

        public io.debezium.pipeline.txmetadata.TransactionContext getTransactionContext()
        Specified by:
        getTransactionContext in interface io.debezium.pipeline.spi.OffsetContext
      • incrementalSnapshotEvents

        public void incrementalSnapshotEvents()
        Specified by:
        incrementalSnapshotEvents in interface io.debezium.pipeline.spi.OffsetContext
      • getIncrementalSnapshotContext

        public io.debezium.pipeline.source.snapshot.incremental.IncrementalSnapshotContext<?> getIncrementalSnapshotContext()
        Specified by:
        getIncrementalSnapshotContext in interface io.debezium.pipeline.spi.OffsetContext