Struct rsdb::Config
[−]
[src]
pub struct Config { /* fields omitted */ }
Top-level configuration for the system.
Methods
impl Config
[src]
fn get_io_bufs(&self) -> usize
Get io_bufs
fn get_io_buf_size(&self) -> usize
Get io_buf_size
fn get_blink_fanout(&self) -> usize
Get blink_fanout
fn get_page_consolidation_threshold(&self) -> usize
Get page_consolidation_threshold
fn get_path(&self) -> Option<String>
Get path
fn get_cache_bits(&self) -> usize
Get the number of bits used for addressing cache shards.
fn get_cache_capacity(&self) -> usize
Get the cache capacity in bytes.
fn get_use_os_cache(&self) -> bool
Get whether the system uses the OS pagecache for compressed pages.
fn get_use_compression(&self) -> bool
Get whether the system compresses data written to secondary storage with the zstd algorithm.
fn get_flush_every_ms(&self) -> Option<u64>
Get the number of milliseconds between flushes.
fn set_io_bufs(&mut self, io_bufs: usize)
Set io_bufs
fn set_io_buf_size(&mut self, io_buf_size: usize)
Set io_buf_size
fn set_blink_fanout(&mut self, blink_fanout: usize)
Set blink_fanout
fn set_page_consolidation_threshold(&mut self, threshold: usize)
Set page_consolidation_threshold
fn set_path(&mut self, path: Option<String>)
Set path
fn set_cache_bits(&mut self, cache_bits: usize)
Set the number of bits used for addressing cache shards.
fn set_cache_capacity(&mut self, cache_capacity: usize)
Set the cache capacity in bytes.
fn set_use_os_cache(&mut self, use_os_cache: bool)
Set whether the system uses the OS pagecache for compressed pages.
fn set_use_compression(&mut self, use_compression: bool)
Set whether the system compresses data written to secondary storage with the zstd algorithm.
fn set_flush_every_ms(&mut self, flush_every_ms: Option<u64>)
Set the number of milliseconds between flushes.
fn io_bufs(&self, io_bufs: usize) -> Config
Builder, set number of io buffers
fn io_buf_size(&self, io_buf_size: usize) -> Config
Builder, set the max io buffer size
fn blink_fanout(&self, blink_fanout: usize) -> Config
Builder, set the b-link tree node fanout
fn page_consolidation_threshold(&self, threshold: usize) -> Config
Builder, set the pagecache consolidation threshold
fn path(&self, path: Option<String>) -> Config
Builder, set the filesystem path
fn cache_bits(&self, cache_bits: usize) -> Config
Builder, set the number of bits used for addressing cache shards.
fn cache_capacity(&self, cache_capacity: usize) -> Config
Builder, set the cache capacity in bytes.
fn use_os_cache(&self, use_os_cache: bool) -> Config
Builder, set whether the system uses the OS pagecache for compressed pages.
fn use_compression(&self, use_compression: bool) -> Config
Builder, set whether the system compresses data written to secondary storage with the zstd algorithm.
fn flush_every_ms(&self, flush_every_ms: Option<u64>) -> Config
Builder, set the number of milliseconds between flushes.
fn tree(&self) -> Tree
create a new Tree
based on this configuration
fn log(&self) -> LockFreeLog
create a new LockFreeLog
based on this configuration
fn cached_file(&self) -> Rc<RefCell<File>>
Retrieve a thread-local file handle to the configured underlying storage, or create a new one if this is the first time the thread is accessing it.
Trait Implementations
impl Debug for Config
[src]
impl Clone for Config
[src]
fn clone(&self) -> Config
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more