Package io.debezium.connector.sqlserver
Class SourceInfo
- java.lang.Object
-
- io.debezium.connector.AbstractSourceInfo
-
- io.debezium.connector.common.BaseSourceInfo
-
- io.debezium.connector.sqlserver.SourceInfo
-
@NotThreadSafe public class SourceInfo extends BaseSourceInfo
Coordinates from the database log to establish the relation between the change streamed and the source log position. Maps tosourcefield inEnvelope.- Author:
- Jiri Pechanec
-
-
Field Summary
Fields Modifier and Type Field Description static StringCHANGE_LSN_KEYprivate LsnchangeLsnstatic StringCOMMIT_LSN_KEYprivate LsncommitLsnstatic StringEVENT_SERIAL_NO_KEYprivate LongeventSerialNoprivate InstantsourceTimeprivate TableIdtableId-
Fields inherited from class io.debezium.connector.common.BaseSourceInfo
snapshotRecord
-
Fields inherited from class io.debezium.connector.AbstractSourceInfo
COLLECTION_NAME_KEY, DATABASE_NAME_KEY, DEBEZIUM_CONNECTOR_KEY, DEBEZIUM_VERSION_KEY, SCHEMA_NAME_KEY, SEQUENCE_KEY, SERVER_NAME_KEY, SNAPSHOT_KEY, TABLE_NAME_KEY, TIMESTAMP_KEY
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSourceInfo(SqlServerConnectorConfig connectorConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Stringdatabase()LsngetChangeLsn()LsngetCommitLsn()LonggetEventSerialNo()TableIdgetTableId()voidsetChangeLsn(Lsn lsn)voidsetCommitLsn(Lsn commitLsn)voidsetEventSerialNo(Long eventSerialNo)voidsetSourceTime(Instant instant)voidsetTableId(TableId tableId)protected Instanttimestamp()StringtoString()-
Methods inherited from class io.debezium.connector.common.BaseSourceInfo
isSnapshot, setSnapshot, snapshot
-
Methods inherited from class io.debezium.connector.AbstractSourceInfo
schema, sequence, serverName, struct, structMaker
-
-
-
-
Field Detail
-
CHANGE_LSN_KEY
public static final String CHANGE_LSN_KEY
- See Also:
- Constant Field Values
-
COMMIT_LSN_KEY
public static final String COMMIT_LSN_KEY
- See Also:
- Constant Field Values
-
EVENT_SERIAL_NO_KEY
public static final String EVENT_SERIAL_NO_KEY
- See Also:
- Constant Field Values
-
changeLsn
private Lsn changeLsn
-
commitLsn
private Lsn commitLsn
-
eventSerialNo
private Long eventSerialNo
-
sourceTime
private Instant sourceTime
-
tableId
private TableId tableId
-
-
Constructor Detail
-
SourceInfo
protected SourceInfo(SqlServerConnectorConfig connectorConfig)
-
-
Method Detail
-
setChangeLsn
public void setChangeLsn(Lsn lsn)
- Parameters:
lsn- - LSN of the change in the database log
-
getChangeLsn
public Lsn getChangeLsn()
-
getCommitLsn
public Lsn getCommitLsn()
-
getEventSerialNo
public Long getEventSerialNo()
-
setCommitLsn
public void setCommitLsn(Lsn commitLsn)
- Parameters:
commitLsn- - LSN of theCOMMITof the transaction whose part the change is
-
setEventSerialNo
public void setEventSerialNo(Long eventSerialNo)
- Parameters:
eventSerialNo- order of the change with the same value of commit and change LSN
-
setSourceTime
public void setSourceTime(Instant instant)
- Parameters:
instant- a time at which the transaction commit was executed
-
getTableId
public TableId getTableId()
-
setTableId
public void setTableId(TableId tableId)
- Parameters:
tableId- - source table of the event
-
timestamp
protected Instant timestamp()
- Specified by:
timestampin classAbstractSourceInfo
-
database
protected String database()
- Specified by:
databasein classAbstractSourceInfo
-
-