Class Db2OffsetContext

java.lang.Object
io.debezium.pipeline.CommonOffsetContext<SourceInfo>
io.debezium.connector.db2.Db2OffsetContext
All Implemented Interfaces:
io.debezium.pipeline.spi.OffsetContext

public class Db2OffsetContext extends io.debezium.pipeline.CommonOffsetContext<SourceInfo>
  • Field Details

    • SERVER_PARTITION_KEY

      private static final String SERVER_PARTITION_KEY
      See Also:
    • SNAPSHOT_COMPLETED_KEY

      private static final String SNAPSHOT_COMPLETED_KEY
      See Also:
    • EVENT_SERIAL_NO_KEY

      private static final String EVENT_SERIAL_NO_KEY
      See Also:
    • 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 Details

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

    • getOffset

      public Map<String,?> getOffset()
    • getSourceInfoSchema

      public org.apache.kafka.connect.data.Schema getSourceInfoSchema()
    • getChangePosition

      public TxLogPosition getChangePosition()
    • getEventSerialNo

      public long getEventSerialNo()
    • setChangePosition

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

      public boolean isSnapshotRunning()
    • isSnapshotCompleted

      public boolean isSnapshotCompleted()
    • preSnapshotStart

      public void preSnapshotStart()
    • preSnapshotCompletion

      public void preSnapshotCompletion()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • event

      public void event(io.debezium.spi.schema.DataCollectionId tableId, Instant timestamp)
    • getTransactionContext

      public io.debezium.pipeline.txmetadata.TransactionContext getTransactionContext()
    • getIncrementalSnapshotContext

      public io.debezium.pipeline.source.snapshot.incremental.IncrementalSnapshotContext<?> getIncrementalSnapshotContext()