Package org.rocksdb

Class LogFile


  • public class LogFile
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long logNumber()
      Primary identifier for log file.
      java.lang.String pathName()
      Returns log file's pathname relative to the main db dir Eg.
      long sizeFileBytes()
      Size of log file on disk in Bytes.
      long startSequence()
      Starting sequence number of writebatch written in this log file.
      WalFileType type()
      Log file can be either alive or archived.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • pathName

        public java.lang.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