public class OracleOffsetContext extends Object implements io.debezium.pipeline.spi.OffsetContext
| Modifier and Type | Class and Description |
|---|---|
static class |
OracleOffsetContext.Builder |
static class |
OracleOffsetContext.Loader |
| Modifier and Type | Field and Description |
|---|---|
private Map<String,String> |
partition |
private static String |
SERVER_PARTITION_KEY |
private static String |
SNAPSHOT_COMPLETED_KEY |
private boolean |
snapshotCompleted
Whether a snapshot has been completed or not.
|
private SourceInfo |
sourceInfo |
private org.apache.kafka.connect.data.Schema |
sourceInfoSchema |
private io.debezium.pipeline.txmetadata.TransactionContext |
transactionContext |
| Modifier | Constructor and Description |
|---|---|
private |
OracleOffsetContext(OracleConnectorConfig connectorConfig,
long scn,
LcrPosition lcrPosition,
boolean snapshot,
boolean snapshotCompleted,
io.debezium.pipeline.txmetadata.TransactionContext transactionContext) |
|
OracleOffsetContext(OracleConnectorConfig connectorConfig,
long scn,
Long commitScn,
LcrPosition lcrPosition,
boolean snapshot,
boolean snapshotCompleted,
io.debezium.pipeline.txmetadata.TransactionContext transactionContext) |
| Modifier and Type | Method and Description |
|---|---|
static OracleOffsetContext.Builder |
create() |
void |
event(io.debezium.schema.DataCollectionId tableId,
Instant timestamp) |
Long |
getCommitScn() |
LcrPosition |
getLcrPosition() |
Map<String,?> |
getOffset() |
Map<String,?> |
getPartition() |
long |
getScn() |
org.apache.kafka.connect.data.Struct |
getSourceInfo() |
org.apache.kafka.connect.data.Schema |
getSourceInfoSchema() |
io.debezium.pipeline.txmetadata.TransactionContext |
getTransactionContext() |
boolean |
isSnapshotRunning() |
void |
markLastSnapshotRecord() |
void |
postSnapshotCompletion() |
void |
preSnapshotCompletion() |
void |
preSnapshotStart() |
void |
setCommitScn(Long commitScn) |
void |
setLcrPosition(LcrPosition lcrPosition) |
void |
setScn(long scn) |
void |
setSourceTime(Instant instant) |
void |
setTableId(io.debezium.relational.TableId tableId) |
void |
setTransactionId(String transactionId) |
String |
toString() |
private static final String SERVER_PARTITION_KEY
private static final String SNAPSHOT_COMPLETED_KEY
private final org.apache.kafka.connect.data.Schema sourceInfoSchema
private final SourceInfo sourceInfo
private final io.debezium.pipeline.txmetadata.TransactionContext transactionContext
private boolean snapshotCompleted
public OracleOffsetContext(OracleConnectorConfig connectorConfig, long scn, Long commitScn, LcrPosition lcrPosition, boolean snapshot, boolean snapshotCompleted, io.debezium.pipeline.txmetadata.TransactionContext transactionContext)
private OracleOffsetContext(OracleConnectorConfig connectorConfig, long scn, LcrPosition lcrPosition, boolean snapshot, boolean snapshotCompleted, io.debezium.pipeline.txmetadata.TransactionContext transactionContext)
public static OracleOffsetContext.Builder create()
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 void setScn(long scn)
public void setCommitScn(Long commitScn)
public long getScn()
public Long getCommitScn()
public void setLcrPosition(LcrPosition lcrPosition)
public LcrPosition getLcrPosition()
public void setTransactionId(String transactionId)
public void setSourceTime(Instant instant)
public void setTableId(io.debezium.relational.TableId tableId)
public boolean isSnapshotRunning()
isSnapshotRunning in interface io.debezium.pipeline.spi.OffsetContextpublic 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.