public class OracleOffsetContext extends Object implements 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 TransactionContext |
transactionContext |
| Modifier | Constructor and Description |
|---|---|
private |
OracleOffsetContext(OracleConnectorConfig connectorConfig,
long scn,
LcrPosition lcrPosition,
boolean snapshot,
boolean snapshotCompleted,
TransactionContext transactionContext) |
|
OracleOffsetContext(OracleConnectorConfig connectorConfig,
long scn,
Long commitScn,
LcrPosition lcrPosition,
boolean snapshot,
boolean snapshotCompleted,
TransactionContext transactionContext) |
| Modifier and Type | Method and Description |
|---|---|
static OracleOffsetContext.Builder |
create() |
void |
event(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() |
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(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 TransactionContext transactionContext
private boolean snapshotCompleted
public OracleOffsetContext(OracleConnectorConfig connectorConfig, long scn, Long commitScn, LcrPosition lcrPosition, boolean snapshot, boolean snapshotCompleted, TransactionContext transactionContext)
private OracleOffsetContext(OracleConnectorConfig connectorConfig, long scn, LcrPosition lcrPosition, boolean snapshot, boolean snapshotCompleted, TransactionContext transactionContext)
public static OracleOffsetContext.Builder create()
public Map<String,?> getPartition()
getPartition in interface OffsetContextpublic Map<String,?> getOffset()
getOffset in interface OffsetContextpublic org.apache.kafka.connect.data.Schema getSourceInfoSchema()
getSourceInfoSchema in interface OffsetContextpublic org.apache.kafka.connect.data.Struct getSourceInfo()
getSourceInfo in interface 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(TableId tableId)
public boolean isSnapshotRunning()
isSnapshotRunning in interface OffsetContextpublic void preSnapshotStart()
preSnapshotStart in interface OffsetContextpublic void preSnapshotCompletion()
preSnapshotCompletion in interface OffsetContextpublic void postSnapshotCompletion()
postSnapshotCompletion in interface OffsetContextpublic void markLastSnapshotRecord()
markLastSnapshotRecord in interface OffsetContextpublic void event(DataCollectionId tableId, Instant timestamp)
event in interface OffsetContextpublic TransactionContext getTransactionContext()
getTransactionContext in interface OffsetContextCopyright © 2021 JBoss by Red Hat. All rights reserved.