public class SqlServerOffsetContext extends Object implements OffsetContext
| Modifier and Type | Class and Description |
|---|---|
static class |
SqlServerOffsetContext.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 |
private SourceInfo |
sourceInfo |
private org.apache.kafka.connect.data.Schema |
sourceInfoSchema |
| Constructor and Description |
|---|
SqlServerOffsetContext(SqlServerConnectorConfig connectorConfig,
TxLogPosition position,
boolean snapshot,
boolean snapshotCompleted) |
| Modifier and Type | Method and Description |
|---|---|
TxLogPosition |
getChangePosition() |
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 |
postSnapshotCompletion() |
void |
preSnapshotCompletion() |
void |
preSnapshotStart() |
void |
setChangePosition(TxLogPosition position) |
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 final org.apache.kafka.connect.data.Schema sourceInfoSchema
private final SourceInfo sourceInfo
private boolean snapshotCompleted
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 void setChangePosition(TxLogPosition position)
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 OffsetContextCopyright © 2019 JBoss by Red Hat. All rights reserved.