Package io.debezium.connector.sqlserver
Class SourceInfo
java.lang.Object
io.debezium.connector.AbstractSourceInfo
io.debezium.connector.common.BaseSourceInfo
io.debezium.connector.sqlserver.SourceInfo
Coordinates from the database log to establish the relation between the change streamed and the source log position.
Maps to
source field in Envelope.- Author:
- Jiri Pechanec
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprivate Lsnstatic final Stringprivate Lsnstatic final Stringprivate Longprivate Instantprivate TableIdFields inherited from class io.debezium.connector.common.BaseSourceInfo
snapshotRecordFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringdatabase()voidsetChangeLsn(Lsn lsn) voidsetCommitLsn(Lsn commitLsn) voidsetEventSerialNo(Long eventSerialNo) voidsetSourceTime(Instant instant) voidsetTableId(TableId tableId) protected InstanttoString()Methods inherited from class io.debezium.connector.common.BaseSourceInfo
isSnapshot, setSnapshot, snapshotMethods inherited from class io.debezium.connector.AbstractSourceInfo
schema, sequence, serverName, struct, structMaker
-
Field Details
-
CHANGE_LSN_KEY
- See Also:
-
COMMIT_LSN_KEY
- See Also:
-
EVENT_SERIAL_NO_KEY
- See Also:
-
changeLsn
-
commitLsn
-
eventSerialNo
-
sourceTime
-
tableId
-
-
Constructor Details
-
SourceInfo
-
-
Method Details
-
setChangeLsn
- Parameters:
lsn- - LSN of the change in the database log
-
getChangeLsn
-
getCommitLsn
-
getEventSerialNo
-
setCommitLsn
- Parameters:
commitLsn- - LSN of theCOMMITof the transaction whose part the change is
-
setEventSerialNo
- Parameters:
eventSerialNo- order of the change with the same value of commit and change LSN
-
setSourceTime
- Parameters:
instant- a time at which the transaction commit was executed
-
getTableId
-
setTableId
- Parameters:
tableId- - source table of the event
-
toString
-
timestamp
- Specified by:
timestampin classAbstractSourceInfo
-
database
- Specified by:
databasein classAbstractSourceInfo
-