Package io.debezium.connector.db2
Class Db2OffsetContext
java.lang.Object
io.debezium.pipeline.CommonOffsetContext<SourceInfo>
io.debezium.connector.db2.Db2OffsetContext
- All Implemented Interfaces:
io.debezium.pipeline.spi.OffsetContext
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate longThe index of the current event within the current transaction.private final io.debezium.pipeline.source.snapshot.incremental.IncrementalSnapshotContext<io.debezium.relational.TableId>private static final Stringprivate static final Stringprivate booleanprivate final org.apache.kafka.connect.data.Schemaprivate final io.debezium.pipeline.txmetadata.TransactionContextFields inherited from class io.debezium.pipeline.CommonOffsetContext
sourceInfo -
Constructor Summary
ConstructorsConstructorDescriptionDb2OffsetContext(Db2ConnectorConfig connectorConfig, TxLogPosition position, boolean snapshot, boolean snapshotCompleted) 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) -
Method Summary
Modifier and TypeMethodDescriptionvoidlongio.debezium.pipeline.source.snapshot.incremental.IncrementalSnapshotContext<?>org.apache.kafka.connect.data.Schemaio.debezium.pipeline.txmetadata.TransactionContextbooleanbooleanvoidvoidvoidsetChangePosition(TxLogPosition position, int eventCount) toString()Methods inherited from class io.debezium.pipeline.CommonOffsetContext
getSourceInfo, incrementalSnapshotEvents, markSnapshotRecord, postSnapshotCompletion
-
Field Details
-
SERVER_PARTITION_KEY
- See Also:
-
SNAPSHOT_COMPLETED_KEY
- See Also:
-
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 eventSerialNoThe 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
-
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
public io.debezium.pipeline.txmetadata.TransactionContext getTransactionContext() -
getIncrementalSnapshotContext
public io.debezium.pipeline.source.snapshot.incremental.IncrementalSnapshotContext<?> getIncrementalSnapshotContext()
-