public class SqlServerOffsetContext extends Object implements OffsetContext
| Modifier and Type | Class and Description |
|---|---|
static class |
SqlServerOffsetContext.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 |
| Constructor and Description |
|---|
SqlServerOffsetContext(SqlServerConnectorConfig connectorConfig,
TxLogPosition position,
boolean snapshot,
boolean snapshotCompleted) |
SqlServerOffsetContext(SqlServerConnectorConfig connectorConfig,
TxLogPosition position,
boolean snapshot,
boolean snapshotCompleted,
long eventSerialNo) |
| Modifier and Type | Method and Description |
|---|---|
TxLogPosition |
getChangePosition() |
long |
getEventSerialNo() |
Map<String,?> |
getOffset() |
Map<String,?> |
getPartition() |
org.apache.kafka.connect.data.Struct |
getSourceInfo() |
org.apache.kafka.connect.data.Schema |
getSourceInfoSchema() |
boolean |
isSnapshotCompleted() |
boolean |
isSnapshotRunning() |
void |
markLastSnapshotRecord() |
void |
postSnapshotCompletion() |
void |
preSnapshotCompletion() |
void |
preSnapshotStart() |
void |
setChangePosition(TxLogPosition position,
int eventCount) |
void |
setSourceTime(Instant instant) |
void |
setTableId(TableId tableId) |
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 long eventSerialNo
public SqlServerOffsetContext(SqlServerConnectorConfig connectorConfig, TxLogPosition position, boolean snapshot, boolean snapshotCompleted, long eventSerialNo)
public SqlServerOffsetContext(SqlServerConnectorConfig connectorConfig, TxLogPosition position, boolean snapshot, boolean snapshotCompleted)
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 TxLogPosition getChangePosition()
public long getEventSerialNo()
public void setChangePosition(TxLogPosition position, int eventCount)
public void setSourceTime(Instant instant)
public void setTableId(TableId tableId)
public boolean isSnapshotRunning()
isSnapshotRunning in interface OffsetContextpublic boolean isSnapshotCompleted()
public void preSnapshotStart()
preSnapshotStart in interface OffsetContextpublic void preSnapshotCompletion()
preSnapshotCompletion in interface OffsetContextpublic void postSnapshotCompletion()
postSnapshotCompletion in interface OffsetContextpublic void markLastSnapshotRecord()
markLastSnapshotRecord in interface OffsetContextCopyright © 2019 JBoss by Red Hat. All rights reserved.