Class LogFile

java.lang.Object
io.debezium.connector.oracle.logminer.LogFile

public class LogFile extends Object
Represents a redo or archive log in Oracle.
Author:
Chris Cranford
  • Field Details

    • fileName

      private final String fileName
    • firstScn

      private final Scn firstScn
    • nextScn

      private final Scn nextScn
    • sequence

      private final BigInteger sequence
    • current

      private final boolean current
    • type

      private final LogFile.Type type
    • thread

      private final int thread
  • Constructor Details

    • LogFile

      public LogFile(String fileName, Scn firstScn, Scn nextScn, BigInteger sequence, LogFile.Type type, int thread)
      Create a log file that represents an archived log record.
      Parameters:
      fileName - the file name
      firstScn - the first system change number in the log
      nextScn - the first system change number in the following log
      sequence - the unique log sequence number
      type - the log type
    • LogFile

      public LogFile(String fileName, Scn firstScn, Scn nextScn, BigInteger sequence, LogFile.Type type, boolean current, int thread)
      Creates a log file that represents an online redo log record.
      Parameters:
      fileName - the file name
      firstScn - the first system change number in the log
      nextScn - the first system change number in the following log
      sequence - the unique log sequence number
      type - the type of archive log
      current - whether the log file is the current one
  • Method Details

    • getFileName

      public String getFileName()
    • getFirstScn

      public Scn getFirstScn()
    • getNextScn

      public Scn getNextScn()
    • getSequence

      public BigInteger getSequence()
    • getThread

      public int getThread()
    • isCurrent

      public boolean isCurrent()
      Returns whether this log file instance is considered the current online redo log record.
    • getType

      public LogFile.Type getType()
    • isScnInLogFileRange

      public boolean isScnInLogFileRange(Scn scn)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object