public class ReadOptions extends RocksObject
nativeHandle_
Constructor and Description |
---|
ReadOptions() |
Modifier and Type | Method and Description |
---|---|
protected void |
disposeInternal()
The helper function of
dispose() which all subclasses of
RocksObject must implement to release their associated
C++ resource. |
boolean |
fillCache()
Fill the cache when loading the block-based sst formated db.
|
ReadOptions |
setFillCache(boolean fillCache)
Fill the cache when loading the block-based sst formatted db.
|
ReadOptions |
setSnapshot(Snapshot snapshot)
If "snapshot" is non-nullptr, read as of the supplied snapshot
(which must belong to the DB that is being read and which must
not have been released).
|
ReadOptions |
setTailing(boolean tailing)
Specify to create a tailing iterator -- a special iterator that has a
view of the complete database (i.e.
|
ReadOptions |
setVerifyChecksums(boolean verifyChecksums)
If true, all data read from underlying storage will be
verified against corresponding checksums.
|
Snapshot |
snapshot()
Returns the currently assigned Snapshot instance.
|
boolean |
tailing()
Specify to create a tailing iterator -- a special iterator that has a
view of the complete database (i.e.
|
boolean |
verifyChecksums()
If true, all data read from underlying storage will be
verified against corresponding checksums.
|
disOwnNativeHandle, dispose, finalize, isInitialized, isOwningNativeHandle
public boolean verifyChecksums()
public ReadOptions setVerifyChecksums(boolean verifyChecksums)
verifyChecksums
- if true, then checksum verification
will be performed on every read.public boolean fillCache()
public ReadOptions setFillCache(boolean fillCache)
fillCache
- if true, then fill-cache behavior will be
performed.public ReadOptions setSnapshot(Snapshot snapshot)
If "snapshot" is non-nullptr, read as of the supplied snapshot (which must belong to the DB that is being read and which must not have been released). If "snapshot" is nullptr, use an implicit snapshot of the state at the beginning of this read operation.
Default: null
snapshot
- Snapshot
instancepublic Snapshot snapshot()
public boolean tailing()
ROCKSDB_LITE
mode!public ReadOptions setTailing(boolean tailing)
tailing
- if true, then tailing iterator will be enabled.protected void disposeInternal()
RocksObject
dispose()
which all subclasses of
RocksObject
must implement to release their associated
C++ resource.disposeInternal
in class RocksObject