Package org.rocksdb
Class SstFileReader
java.lang.Object
org.rocksdb.AbstractNativeReference
org.rocksdb.AbstractImmutableNativeReference
org.rocksdb.RocksObject
org.rocksdb.SstFileReader
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields inherited from class org.rocksdb.RocksObject
nativeHandle_Fields inherited from class org.rocksdb.AbstractImmutableNativeReference
owningHandle_ -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voiddisposeInternal(long handle) Get the properties of the table.newIterator(ReadOptions readOptions) Returns an iterator that will iterate on all keys in the default column family including both keys in the DB and uncommitted keys in this transaction.voidPrepare SstFileReader to read a file.voidVerify checksumMethods inherited from class org.rocksdb.RocksObject
disposeInternal, getNativeHandleMethods inherited from class org.rocksdb.AbstractImmutableNativeReference
close, disOwnNativeHandle, isOwningHandle
-
Constructor Details
-
SstFileReader
-
-
Method Details
-
newIterator
Returns an iterator that will iterate on all keys in the default column family including both keys in the DB and uncommitted keys in this transaction.Setting
ReadOptions.setSnapshot(Snapshot)will affect what is read from the DB but will NOT change which keys are read from this transaction (the keys in this transaction do not yet belong to any snapshot and will be fetched regardless).Caller is responsible for deleting the returned Iterator.
- Parameters:
readOptions- Read options.- Returns:
- instance of iterator object.
-
open
Prepare SstFileReader to read a file.- Parameters:
filePath- the location of file- Throws:
RocksDBException- thrown if error happens in underlying native library.
-
verifyChecksum
Verify checksum- Throws:
RocksDBException- if the checksum is not valid
-
getTableProperties
Get the properties of the table.- Returns:
- the properties
- Throws:
RocksDBException- if an error occurs whilst getting the table properties
-
disposeInternal
protected final void disposeInternal(long handle) - Specified by:
disposeInternalin classRocksObject
-