Package org.rocksdb

Class LogFile

java.lang.Object
org.rocksdb.LogFile

public class LogFile extends Object
  • Method Details

    • pathName

      public String pathName()
      Returns log file's pathname relative to the main db dir Eg. For a live-log-file = /000003.log For an archived-log-file = /archive/000003.log
      Returns:
      log file's pathname
    • logNumber

      public long logNumber()
      Primary identifier for log file. This is directly proportional to creation time of the log file
      Returns:
      the log number
    • type

      public WalFileType type()
      Log file can be either alive or archived.
      Returns:
      the type of the log file.
    • startSequence

      public long startSequence()
      Starting sequence number of writebatch written in this log file.
      Returns:
      the stating sequence number
    • sizeFileBytes

      public long sizeFileBytes()
      Size of log file on disk in Bytes.
      Returns:
      size of log file