Struct lsm::Params[][src]

pub struct Params {
    pub db_path: PathBuf,
    pub max_memtable_size: usize,
    pub num_levels: usize,
    pub max_open_files: usize,
    pub max_key_block_size: usize,
    pub block_restart_interval: usize,
}

Parameters to customize the creation of the database

Fields

db_path: PathBuf

Where in the filesystem should the databasse be stored?

max_memtable_size: usize

Maximum size of a memtable (keys+values), This indirectly also defines how large a value block can be

num_levels: usize

How many levels does this store have (default: 5)

max_open_files: usize

How many open files should be held in memory?

max_key_block_size: usize

Maximum number of entries in a key block

block_restart_interval: usize

How often should the full key be stored in a data block? Larger numbers result in smaller on-disk files, but seeks will be slower

Trait Implementations

impl Default for Params[src]

Auto Trait Implementations

impl RefUnwindSafe for Params

impl Send for Params

impl Sync for Params

impl Unpin for Params

impl UnwindSafe for Params

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.