Package org.rocksdb
Class LogFile
- java.lang.Object
-
- org.rocksdb.LogFile
-
public class LogFile extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longlogNumber()Primary identifier for log file.java.lang.StringpathName()Returns log file's pathname relative to the main db dir Eg.longsizeFileBytes()Size of log file on disk in Bytes.longstartSequence()Starting sequence number of writebatch written in this log file.WalFileTypetype()Log file can be either alive or archived.
-
-
-
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
-
-