pub struct ReadOptions {
pub verify_checksums: bool,
pub fill_cache: bool,
pub snapshot: Option<Snapshot>,
}Expand description
Options that control read operations.
See include/leveldb/options.h.
Fields§
§verify_checksums: boolVerify block checksums on every read.
Partially implemented. Table::get and read_block respect this flag, but
Version::get (the SSTable lookup path used by Db::get) currently hardcodes false,
so point lookups never verify checksums even when this is set. Iterator block reads are
also unaffected. Setting this to true has no effect until the flag is fully threaded
through.
Default: false.
fill_cache: boolCache blocks read during this operation in the block cache.
Set to false for bulk scans to avoid polluting the cache.
Not yet implemented. Accepted but ignored — there is no block cache yet, so all block reads bypass caching unconditionally.
Default: true.
snapshot: Option<Snapshot>Read as of this snapshot’s sequence number.
None means “use an implicit snapshot of the current state”.
Implementations§
Source§impl ReadOptions
impl ReadOptions
Trait Implementations§
Source§impl Clone for ReadOptions
impl Clone for ReadOptions
Source§fn clone(&self) -> ReadOptions
fn clone(&self) -> ReadOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more