Package io.debezium.connector.informix
Class SourceInfo
java.lang.Object
io.debezium.connector.AbstractSourceInfo
io.debezium.connector.common.BaseSourceInfo
io.debezium.connector.informix.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:
- Laoflch Luo, Xiaolin Zhang, Lars M Johansson
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprivate Lsnstatic final Stringprivate Lsnstatic final Stringprivate Lsnprivate final InformixConnectorConfigprivate io.debezium.relational.TableIdprivate Instantstatic final Stringprivate IntegerFields 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.TableIdgetTxId()voidsetBeginLsn(Lsn beginLsn) voidsetChangeLsn(Lsn changeLsn) voidsetCommitLsn(Lsn commitLsn) voidsetTableId(io.debezium.relational.TableId tableId) voidsetTimestamp(Instant timestamp) voidprotected 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:
-
BEGIN_LSN_KEY
- See Also:
-
TX_ID_KEY
- See Also:
-
commitLsn
-
changeLsn
-
txId
-
beginLsn
-
timestamp
-
tableId
private io.debezium.relational.TableId tableId -
config
-
-
Constructor Details
-
SourceInfo
-
-
Method Details
-
getCommitLsn
-
setCommitLsn
- Parameters:
commitLsn- - LSN of the { @code COMMIT} of the transaction whose part the change is
-
getChangeLsn
-
setChangeLsn
- Parameters:
changeLsn- - LSN of the change in the database log
-
getTxId
-
setTxId
- Parameters:
txId- - Id of the transaction whose part the change is
-
getBeginLsn
-
setBeginLsn
- Parameters:
beginLsn- - LSN of the { @code BEGIN} of the transaction whose part the change is
-
setTimestamp
- Parameters:
timestamp- 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- Returns:
- timestamp of the event
-
database
- Specified by:
databasein classio.debezium.connector.AbstractSourceInfo- Returns:
- name of the database
-