public class SqlServerOffsetContext extends Object implements io.debezium.pipeline.spi.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(String serverName,
Lsn lsn,
boolean snapshot,
boolean snapshotCompleted) |
| Modifier and Type | Method and Description |
|---|---|
Lsn |
getChangeLsn() |
Map<String,?> |
getOffset() |
Map<String,?> |
getPartition() |
org.apache.kafka.connect.data.Struct |
getSourceInfo() |
org.apache.kafka.connect.data.Schema |
getSourceInfoSchema() |
boolean |
isSnapshotRunning() |
void |
postSnapshotCompletion() |
void |
preSnapshotCompletion() |
void |
preSnapshotStart() |
void |
setChangeLsn(Lsn lsn) |
void |
setCommitLsn(Lsn lsn) |
void |
setSourceTime(Instant instant) |
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 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 setChangeLsn(Lsn lsn)
public Lsn getChangeLsn()
public void setCommitLsn(Lsn lsn)
public void setSourceTime(Instant instant)
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 © 2018 JBoss by Red Hat. All rights reserved.