public class Db2OffsetContext extends Object implements io.debezium.pipeline.spi.OffsetContext
| Modifier and Type | Class and Description |
|---|---|
static class |
Db2OffsetContext.Loader |
| Modifier and Type | Field and Description |
|---|---|
private static String |
EVENT_SERIAL_NO_KEY |
private long |
eventSerialNo
The index of the current event within the current transaction.
|
private Map<String,String> |
partition |
private static String |
SERVER_PARTITION_KEY |
private static String |
SNAPSHOT_COMPLETED_KEY |
private boolean |
snapshotCompleted |
private SourceInfo |
sourceInfo |
private org.apache.kafka.connect.data.Schema |
sourceInfoSchema |
private io.debezium.pipeline.txmetadata.TransactionContext |
transactionContext |
| Constructor and Description |
|---|
Db2OffsetContext(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) |
| Modifier and Type | Method and Description |
|---|---|
void |
event(io.debezium.schema.DataCollectionId tableId,
Instant timestamp) |
TxLogPosition |
getChangePosition() |
long |
getEventSerialNo() |
Map<String,?> |
getOffset() |
Map<String,?> |
getPartition() |
org.apache.kafka.connect.data.Struct |
getSourceInfo() |
org.apache.kafka.connect.data.Schema |
getSourceInfoSchema() |
io.debezium.pipeline.txmetadata.TransactionContext |
getTransactionContext() |
boolean |
isSnapshotCompleted() |
boolean |
isSnapshotRunning() |
void |
markLastSnapshotRecord() |
void |
postSnapshotCompletion() |
void |
preSnapshotCompletion() |
void |
preSnapshotStart() |
void |
setChangePosition(TxLogPosition position,
int eventCount) |
String |
toString() |
private static final String SERVER_PARTITION_KEY
private static final String SNAPSHOT_COMPLETED_KEY
private static final String EVENT_SERIAL_NO_KEY
private final org.apache.kafka.connect.data.Schema sourceInfoSchema
private final SourceInfo sourceInfo
private boolean snapshotCompleted
private final io.debezium.pipeline.txmetadata.TransactionContext transactionContext
private long eventSerialNo
public Db2OffsetContext(Db2ConnectorConfig connectorConfig, TxLogPosition position, boolean snapshot, boolean snapshotCompleted, long eventSerialNo, io.debezium.pipeline.txmetadata.TransactionContext transactionContext)
public Db2OffsetContext(Db2ConnectorConfig connectorConfig, TxLogPosition position, boolean snapshot, boolean snapshotCompleted)
public Map<String,?> getPartition()
getPartition in interface io.debezium.pipeline.spi.OffsetContextpublic Map<String,?> getOffset()
getOffset in interface io.debezium.pipeline.spi.OffsetContextpublic org.apache.kafka.connect.data.Schema getSourceInfoSchema()
getSourceInfoSchema in interface io.debezium.pipeline.spi.OffsetContextpublic org.apache.kafka.connect.data.Struct getSourceInfo()
getSourceInfo in interface io.debezium.pipeline.spi.OffsetContextpublic TxLogPosition getChangePosition()
public long getEventSerialNo()
public void setChangePosition(TxLogPosition position, int eventCount)
public boolean isSnapshotRunning()
isSnapshotRunning in interface io.debezium.pipeline.spi.OffsetContextpublic boolean isSnapshotCompleted()
public void preSnapshotStart()
preSnapshotStart in interface io.debezium.pipeline.spi.OffsetContextpublic void preSnapshotCompletion()
preSnapshotCompletion in interface io.debezium.pipeline.spi.OffsetContextpublic void postSnapshotCompletion()
postSnapshotCompletion in interface io.debezium.pipeline.spi.OffsetContextpublic void markLastSnapshotRecord()
markLastSnapshotRecord in interface io.debezium.pipeline.spi.OffsetContextpublic void event(io.debezium.schema.DataCollectionId tableId,
Instant timestamp)
event in interface io.debezium.pipeline.spi.OffsetContextpublic io.debezium.pipeline.txmetadata.TransactionContext getTransactionContext()
getTransactionContext in interface io.debezium.pipeline.spi.OffsetContextCopyright © 2020 JBoss by Red Hat. All rights reserved.