Package org.rocksdb
Class LogFile
java.lang.Object
org.rocksdb.LogFile
-
Method Summary
Modifier and TypeMethodDescriptionlongPrimary identifier for log file.pathName()Returns log file's pathname relative to the main db dir Eg.longSize of log file on disk in Bytes.longStarting sequence number of writebatch written in this log file.type()Log file can be either alive or archived.
-
Method Details
-
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
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
-