pub struct LiveFilesStorageInfoOptions { /* private fields */ }Expand description
Options controlling how live files storage info is collected.
Implementations§
Source§impl LiveFilesStorageInfoOptions
impl LiveFilesStorageInfoOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates options with RocksDB’s defaults: no checksum info, always flush, and follow the DB-wide atomic flush setting.
Sourcepub fn set_include_checksum_info(&mut self, val: bool)
pub fn set_include_checksum_info(&mut self, val: bool)
Whether to populate the checksum fields on each entry. Off by default, in
which case
file_checksum_func_name
comes back empty.
Sourcepub fn get_include_checksum_info(&self) -> bool
pub fn get_include_checksum_info(&self) -> bool
Returns the value of the include_checksum_info option.
Sourcepub fn set_wal_size_for_flush(&mut self, val: u64)
pub fn set_wal_size_for_flush(&mut self, val: u64)
Flush memtables when the total size of live WAL files in bytes is at least this value and the DB is writable.
The default, 0, always flushes.
Sourcepub fn get_wal_size_for_flush(&self) -> u64
pub fn get_wal_size_for_flush(&self) -> u64
Returns the value of the wal_size_for_flush option.
Sourcepub fn set_atomic_flush(&mut self, val: bool)
pub fn set_atomic_flush(&mut self, val: bool)
Flush all column families atomically regardless of
Options::set_atomic_flush, giving a
consistent view across them.
Only matters when a flush actually happens, so it has no effect if
wal_size_for_flush suppressed the flush. Defaults to off, which follows
the DB-wide setting.
Sourcepub fn get_atomic_flush(&self) -> bool
pub fn get_atomic_flush(&self) -> bool
Returns the value of the atomic_flush option.