Package io.debezium.connector.sqlserver
Class SqlServerOffsetContext
java.lang.Object
io.debezium.pipeline.CommonOffsetContext<SourceInfo>
io.debezium.connector.sqlserver.SqlServerOffsetContext
- All Implemented Interfaces:
OffsetContext
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longThe index of the current event within the current transaction.private final IncrementalSnapshotContext<TableId>private static final Stringprivate booleanprivate final org.apache.kafka.connect.data.Schemaprivate final TransactionContextFields inherited from class io.debezium.pipeline.CommonOffsetContext
sourceInfo -
Constructor Summary
ConstructorsConstructorDescriptionSqlServerOffsetContext(SqlServerConnectorConfig connectorConfig, TxLogPosition position, boolean snapshot, boolean snapshotCompleted) SqlServerOffsetContext(SqlServerConnectorConfig connectorConfig, TxLogPosition position, boolean snapshot, boolean snapshotCompleted, long eventSerialNo, TransactionContext transactionContext, IncrementalSnapshotContext<TableId> incrementalSnapshotContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidevent(DataCollectionId tableId, Instant timestamp) longorg.apache.kafka.connect.data.SchemabooleanbooleanvoidvoidvoidsetChangePosition(TxLogPosition position, int eventCount) toString()Methods inherited from class io.debezium.pipeline.CommonOffsetContext
getSourceInfo, incrementalSnapshotEvents, markSnapshotRecord, postSnapshotCompletion
-
Field Details
-
SNAPSHOT_COMPLETED_KEY
- See Also:
-
sourceInfoSchema
private final org.apache.kafka.connect.data.Schema sourceInfoSchema -
snapshotCompleted
private boolean snapshotCompleted -
transactionContext
-
incrementalSnapshotContext
-
eventSerialNo
private long eventSerialNoThe index of the current event within the current transaction.
-
-
Constructor Details
-
SqlServerOffsetContext
public SqlServerOffsetContext(SqlServerConnectorConfig connectorConfig, TxLogPosition position, boolean snapshot, boolean snapshotCompleted, long eventSerialNo, TransactionContext transactionContext, IncrementalSnapshotContext<TableId> incrementalSnapshotContext) -
SqlServerOffsetContext
public SqlServerOffsetContext(SqlServerConnectorConfig connectorConfig, TxLogPosition position, boolean snapshot, boolean snapshotCompleted)
-
-
Method Details
-
getOffset
-
getSourceInfoSchema
public org.apache.kafka.connect.data.Schema getSourceInfoSchema() -
getChangePosition
-
getEventSerialNo
public long getEventSerialNo() -
setChangePosition
-
isSnapshotRunning
public boolean isSnapshotRunning() -
isSnapshotCompleted
public boolean isSnapshotCompleted() -
preSnapshotStart
public void preSnapshotStart() -
preSnapshotCompletion
public void preSnapshotCompletion() -
toString
-
event
-
getTransactionContext
-
getIncrementalSnapshotContext
-