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 Details

    • CHANGE_LSN_KEY

      public static final String CHANGE_LSN_KEY
      See Also:
    • COMMIT_LSN_KEY

      public static final String COMMIT_LSN_KEY
      See Also:
    • changeLsn

      private Lsn changeLsn
    • commitLsn

      private Lsn commitLsn
    • sourceTime

      private Instant sourceTime
    • tableId

      private io.debezium.relational.TableId tableId
    • databaseName

      private String databaseName
  • Constructor Details

  • Method Details

    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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