Class 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
    • 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 the COMMIT of 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:
        timestamp in class io.debezium.connector.AbstractSourceInfo
      • database

        protected String database()
        Specified by:
        database in class io.debezium.connector.AbstractSourceInfo