Struct dharmadb::options::DharmaOpts[][src]

pub struct DharmaOpts {
    pub bootstrap: bool,
    pub path: String,
    pub memtable_size_in_bytes: usize,
    pub block_size_in_bytes: usize,
    pub blocks_per_sstable: u64,
    pub sparse_index_sampling_rate: u32,
}

Configuration properties used to initialize a database instance.

Fields

bootstrap: bool

Flag specifying whether to bootstrap database from existing store if data has already been persisted at that path.

path: String

Path at which data is persisted.

memtable_size_in_bytes: usize

Threshold for memtable size. If size exceeds this then memtable will be flushed to disk.

block_size_in_bytes: usize

block size in bytes

blocks_per_sstable: u64

number of blocks in an SSTable This field will be deprecated after we introduced variable sized SSTables

sparse_index_sampling_rate: u32

Sparse Index Sampling frequency. On out of all n values is stored in this spares Index

Implementations

impl DharmaOpts[src]

pub fn default() -> DharmaOpts[src]

Create configuration options with default values. Default value for all configuration values are specified below.

Defaults

PropertyDefault Value
path/var/lib/dharma
bootstraptrue

Trait Implementations

impl Clone for DharmaOpts[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.