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 |
| Modifier | Constructor and Description |
|---|---|
private |
OracleOffsetContext(OracleConnectorConfig connectorConfig,
long scn,
LcrPosition lcrPosition,
boolean snapshot,
boolean snapshotCompleted) |
| Modifier and Type | Method and Description |
|---|---|
static OracleOffsetContext.Builder |
create() |
LcrPosition |
getLcrPosition() |
Map<String,?> |
getOffset() |
Map<String,?> |
getPartition() |
long |
getScn() |
org.apache.kafka.connect.data.Struct |
getSourceInfo() |
org.apache.kafka.connect.data.Schema |
getSourceInfoSchema() |
boolean |
isSnapshotRunning() |
void |
postSnapshotCompletion() |
void |
preSnapshotCompletion() |
void |
preSnapshotStart() |
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 boolean snapshotCompleted
private OracleOffsetContext(OracleConnectorConfig connectorConfig, long scn, LcrPosition lcrPosition, boolean snapshot, boolean snapshotCompleted)
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 long getScn()
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.OffsetContextCopyright © 2019 JBoss by Red Hat. All rights reserved.