Package io.debezium.connector.db2
Class SourceInfo
java.lang.Object
io.debezium.connector.AbstractSourceInfo
io.debezium.connector.common.BaseSourceInfo
io.debezium.connector.db2.SourceInfo
@NotThreadSafe
public class SourceInfo
extends io.debezium.connector.common.BaseSourceInfo
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 Lsnprivate Stringprivate Instantprivate io.debezium.relational.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()io.debezium.relational.TableIdvoidsetChangeLsn(Lsn lsn) voidsetCommitLsn(Lsn commitLsn) voidsetSourceTime(Instant instant) voidsetTableId(io.debezium.relational.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:
-
changeLsn
-
commitLsn
-
sourceTime
-
tableId
private io.debezium.relational.TableId tableId -
databaseName
-
-
Constructor Details
-
SourceInfo
-
-
Method Details
-
setChangeLsn
- Parameters:
lsn- - LSN of the change in the database log
-
getChangeLsn
-
getCommitLsn
-
setCommitLsn
- Parameters:
commitLsn- - LSN of theCOMMITof the transaction whose part the change is
-
setSourceTime
- Parameters:
instant- a time at which the transaction commit was executed
-
getTableId
public io.debezium.relational.TableId getTableId() -
setTableId
public void setTableId(io.debezium.relational.TableId tableId) - Parameters:
tableId- - source table of the event
-
toString
-
timestamp
- Specified by:
timestampin classio.debezium.connector.AbstractSourceInfo
-
database
- Specified by:
databasein classio.debezium.connector.AbstractSourceInfo
-