Struct rsdb::Config [] [src]

pub struct Config { /* fields omitted */ }

Top-level configuration for the system.

Examples

let config = rsdb::Config::default()
    .path(Some("/path/to/data".to_owned()))
    .cache_capacity(10_000_000_000)
    .use_compression(true)
    .flush_every_ms(Some(1000))
    .snapshot_after_ops(100_000);

Methods

impl Config
[src]

Get number of io buffers

Set number of io buffers

Builder, set number of io buffers

Get size of each io flush buffer

Set size of each io flush buffer

Builder, set size of each io flush buffer

Get b-link node fanout

Set b-link node fanout

Builder, set b-link node fanout

Get page consolidation threshold

Set page consolidation threshold

Builder, set page consolidation threshold

Get path for the main storage file

Set path for the main storage file

Builder, set path for the main storage file

Get log base 2 of the number of cache shards

Set log base 2 of the number of cache shards

Builder, set log base 2 of the number of cache shards

Get maximum size for the system page cache

Set maximum size for the system page cache

Builder, set maximum size for the system page cache

Get whether to use the OS page cache

Set whether to use the OS page cache

Builder, set whether to use the OS page cache

Get whether to use zstd compression

Set whether to use zstd compression

Builder, set whether to use zstd compression

Get number of ms between IO buffer flushes

Set number of ms between IO buffer flushes

Builder, set number of ms between IO buffer flushes

Get number of operations between page table snapshots

Set number of operations between page table snapshots

Builder, set number of operations between page table snapshots

Get snapshot file location

Set snapshot file location

Builder, set snapshot file location

create a new Tree based on this configuration

create a new LockFreeLog based on this configuration

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]

Formats the value using the given formatter.

impl Clone for Config
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Config
[src]

Returns the "default value" for a type. Read more

impl Drop for Config
[src]

A method called when the value goes out of scope. Read more