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 long
The index of the current event within the current transaction.private final IncrementalSnapshotContext
<TableId> private final org.apache.kafka.connect.data.Schema
private final TransactionContext
Fields inherited from class io.debezium.pipeline.CommonOffsetContext
snapshot, SNAPSHOT_COMPLETED_KEY, snapshotCompleted, sourceInfo
-
Constructor Summary
ConstructorsConstructorDescriptionSqlServerOffsetContext
(SqlServerConnectorConfig connectorConfig, TxLogPosition position, SnapshotType snapshot, boolean snapshotCompleted) SqlServerOffsetContext
(SqlServerConnectorConfig connectorConfig, TxLogPosition position, SnapshotType snapshot, boolean snapshotCompleted, long eventSerialNo, TransactionContext transactionContext, IncrementalSnapshotContext<TableId> incrementalSnapshotContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
long
org.apache.kafka.connect.data.Schema
boolean
void
setChangePosition
(TxLogPosition position, int eventCount) toString()
Methods inherited from class io.debezium.pipeline.CommonOffsetContext
getSnapshot, getSourceInfo, incrementalSnapshotEvents, isInitialSnapshotRunning, markSnapshotRecord, postSnapshotCompletion, preSnapshotCompletion, preSnapshotStart, setSnapshot
-
Field Details
-
sourceInfoSchema
private final org.apache.kafka.connect.data.Schema sourceInfoSchema -
transactionContext
-
incrementalSnapshotContext
-
eventSerialNo
private long eventSerialNoThe index of the current event within the current transaction.
-
-
Constructor Details
-
SqlServerOffsetContext
public SqlServerOffsetContext(SqlServerConnectorConfig connectorConfig, TxLogPosition position, SnapshotType snapshot, boolean snapshotCompleted, long eventSerialNo, TransactionContext transactionContext, IncrementalSnapshotContext<TableId> incrementalSnapshotContext) -
SqlServerOffsetContext
public SqlServerOffsetContext(SqlServerConnectorConfig connectorConfig, TxLogPosition position, SnapshotType snapshot, boolean snapshotCompleted)
-
-
Method Details
-
getOffset
-
getSourceInfoSchema
public org.apache.kafka.connect.data.Schema getSourceInfoSchema() -
getChangePosition
-
getEventSerialNo
public long getEventSerialNo() -
setChangePosition
-
isSnapshotCompleted
public boolean isSnapshotCompleted() -
toString
-
event
-
getTransactionContext
-
getIncrementalSnapshotContext
-