public class SstFileReader extends RocksObject
nativeHandle_owningHandle_| 构造器和说明 |
|---|
SstFileReader(Options options) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
disposeInternal(long handle) |
TableProperties |
getTableProperties()
Get the properties of the table.
|
SstFileReaderIterator |
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.
|
void |
open(java.lang.String filePath)
Prepare SstFileReader to read a file.
|
void |
verifyChecksum()
Verify checksum
|
disposeInternal, getNativeHandleclose, disOwnNativeHandle, isOwningHandlepublic SstFileReader(Options options)
public SstFileReaderIterator newIterator(ReadOptions readOptions)
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.
readOptions - Read options.public void open(java.lang.String filePath)
throws RocksDBException
filePath - the location of fileRocksDBException - thrown if error happens in underlying
native library.public void verifyChecksum()
throws RocksDBException
RocksDBException - if the checksum is not validpublic TableProperties getTableProperties() throws RocksDBException
RocksDBException - if an error occurs whilst getting the table
propertiesprotected final void disposeInternal(long handle)
disposeInternal 在类中 RocksObject