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 Details

  • Constructor Details

  • Method Details

    • getCommitLsn

      public Lsn getCommitLsn()
    • setCommitLsn

      public void setCommitLsn(Lsn commitLsn)
      Parameters:
      commitLsn - - LSN of the { @code COMMIT} of the transaction whose part the change is
    • getChangeLsn

      public Lsn getChangeLsn()
    • setChangeLsn

      public void setChangeLsn(Lsn changeLsn)
      Parameters:
      changeLsn - - LSN of the change in the database log
    • getTxId

      public Integer getTxId()
    • setTxId

      public void setTxId(Integer txId)
      Parameters:
      txId - - Id of the transaction whose part the change is
    • getBeginLsn

      public Lsn getBeginLsn()
    • setBeginLsn

      public void setBeginLsn(Lsn beginLsn)
      Parameters:
      beginLsn - - LSN of the { @code BEGIN} of the transaction whose part the change is
    • setTimestamp

      public void setTimestamp(Instant timestamp)
      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

      public String toString()
      Overrides:
      toString in class Object
    • timestamp

      protected Instant timestamp()
      Specified by:
      timestamp in class io.debezium.connector.AbstractSourceInfo
      Returns:
      timestamp of the event
    • database

      protected String database()
      Specified by:
      database in class io.debezium.connector.AbstractSourceInfo
      Returns:
      name of the database