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.BaseSourceInfoCoordinates 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 LsncommitLsnprivate StringdatabaseNameprivate InstantsourceTimeprivate io.debezium.relational.TableIdtableId
-
Constructor Summary
Constructors Modifier Constructor Description protectedSourceInfo(Db2ConnectorConfig connectorConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Stringdatabase()LsngetChangeLsn()LsngetCommitLsn()io.debezium.relational.TableIdgetTableId()voidsetChangeLsn(Lsn lsn)voidsetCommitLsn(Lsn commitLsn)voidsetSourceTime(Instant instant)voidsetTableId(io.debezium.relational.TableId tableId)protected Instanttimestamp()StringtoString()-
Methods inherited from class io.debezium.connector.common.BaseSourceInfo
isSnapshot, setSnapshot, snapshot
-
-
-
-
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
-
changeLsn
private Lsn changeLsn
-
commitLsn
private Lsn commitLsn
-
sourceTime
private Instant sourceTime
-
tableId
private io.debezium.relational.TableId tableId
-
databaseName
private String databaseName
-
-
Constructor Detail
-
SourceInfo
protected SourceInfo(Db2ConnectorConfig 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()
-
setCommitLsn
public void setCommitLsn(Lsn commitLsn)
- Parameters:
commitLsn- - LSN of theCOMMITof the transaction whose part the change is
-
setSourceTime
public void setSourceTime(Instant instant)
- 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
-
timestamp
protected Instant timestamp()
- Specified by:
timestampin classio.debezium.connector.AbstractSourceInfo
-
database
protected String database()
- Specified by:
databasein classio.debezium.connector.AbstractSourceInfo
-
-