Package io.debezium.connector.sqlserver
Class SqlServerOffsetContext
java.lang.Object
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 SourceInfoprivate final org.apache.kafka.connect.data.Schemaprivate final TransactionContext -
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.Structorg.apache.kafka.connect.data.SchemavoidbooleanbooleanvoidvoidvoidvoidvoidsetChangePosition(TxLogPosition position, int eventCount) toString()
-
Field Details
-
SNAPSHOT_COMPLETED_KEY
- See Also:
-
sourceInfoSchema
private final org.apache.kafka.connect.data.Schema sourceInfoSchema -
sourceInfo
-
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
- Specified by:
getOffsetin interfaceOffsetContext
-
getSourceInfoSchema
public org.apache.kafka.connect.data.Schema getSourceInfoSchema()- Specified by:
getSourceInfoSchemain interfaceOffsetContext
-
getSourceInfo
public org.apache.kafka.connect.data.Struct getSourceInfo()- Specified by:
getSourceInfoin interfaceOffsetContext
-
getChangePosition
-
getEventSerialNo
public long getEventSerialNo() -
setChangePosition
-
isSnapshotRunning
public boolean isSnapshotRunning()- Specified by:
isSnapshotRunningin interfaceOffsetContext
-
isSnapshotCompleted
public boolean isSnapshotCompleted() -
preSnapshotStart
public void preSnapshotStart()- Specified by:
preSnapshotStartin interfaceOffsetContext
-
preSnapshotCompletion
public void preSnapshotCompletion()- Specified by:
preSnapshotCompletionin interfaceOffsetContext
-
postSnapshotCompletion
public void postSnapshotCompletion()- Specified by:
postSnapshotCompletionin interfaceOffsetContext
-
toString
-
markLastSnapshotRecord
public void markLastSnapshotRecord()- Specified by:
markLastSnapshotRecordin interfaceOffsetContext
-
event
- Specified by:
eventin interfaceOffsetContext
-
getTransactionContext
- Specified by:
getTransactionContextin interfaceOffsetContext
-
incrementalSnapshotEvents
public void incrementalSnapshotEvents()- Specified by:
incrementalSnapshotEventsin interfaceOffsetContext
-
getIncrementalSnapshotContext
- Specified by:
getIncrementalSnapshotContextin interfaceOffsetContext
-