Class SqlServerOffsetContext

java.lang.Object
io.debezium.pipeline.CommonOffsetContext<SourceInfo>
io.debezium.connector.sqlserver.SqlServerOffsetContext
All Implemented Interfaces:
OffsetContext

public class SqlServerOffsetContext extends CommonOffsetContext<SourceInfo>
  • Field Details

    • SNAPSHOT_COMPLETED_KEY

      private static final String SNAPSHOT_COMPLETED_KEY
      See Also:
    • sourceInfoSchema

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

      private boolean snapshotCompleted
    • transactionContext

      private final TransactionContext transactionContext
    • incrementalSnapshotContext

      private final IncrementalSnapshotContext<TableId> incrementalSnapshotContext
    • eventSerialNo

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

  • 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(DataCollectionId tableId, Instant timestamp)
    • getTransactionContext

      public TransactionContext getTransactionContext()
    • getIncrementalSnapshotContext

      public IncrementalSnapshotContext<?> getIncrementalSnapshotContext()