@NotThreadSafe public class SourceInfo extends BaseSourceInfo
source field in Envelope.| Modifier and Type | Field and Description |
|---|---|
static String |
CHANGE_LSN_KEY |
private Lsn |
changeLsn |
static String |
COMMIT_LSN_KEY |
private Lsn |
commitLsn |
private Instant |
sourceTime |
private TableId |
tableId |
snapshotRecordCOLLECTION_NAME_KEY, DATABASE_NAME_KEY, DEBEZIUM_CONNECTOR_KEY, DEBEZIUM_VERSION_KEY, SCHEMA_NAME_KEY, SERVER_NAME_KEY, SNAPSHOT_KEY, TABLE_NAME_KEY, TIMESTAMP_KEY| Modifier | Constructor and Description |
|---|---|
protected |
SourceInfo(SqlServerConnectorConfig connectorConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
database() |
Lsn |
getChangeLsn() |
Lsn |
getCommitLsn() |
TableId |
getTableId() |
void |
setChangeLsn(Lsn lsn) |
void |
setCommitLsn(Lsn commitLsn) |
void |
setSourceTime(Instant instant) |
void |
setTableId(TableId tableId) |
protected Instant |
timestamp() |
String |
toString() |
isSnapshot, setSnapshot, snapshotschema, serverName, struct, structMakerpublic static final String CHANGE_LSN_KEY
public static final String COMMIT_LSN_KEY
private Lsn changeLsn
private Lsn commitLsn
private Instant sourceTime
private TableId tableId
protected SourceInfo(SqlServerConnectorConfig connectorConfig)
public void setChangeLsn(Lsn lsn)
lsn - - LSN of the change in the database logpublic Lsn getChangeLsn()
public Lsn getCommitLsn()
public void setCommitLsn(Lsn commitLsn)
commitLsn - - LSN of the COMMIT of the transaction whose part the change ispublic void setSourceTime(Instant instant)
instant - a time at which the transaction commit was executedpublic TableId getTableId()
public void setTableId(TableId tableId)
tableId - - source table of the eventprotected Instant timestamp()
timestamp in class AbstractSourceInfoprotected String database()
database in class AbstractSourceInfoCopyright © 2019 JBoss by Red Hat. All rights reserved.