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
Property | Default Value |
---|---|
path | /var/lib/dharma |
bootstrap | true |
Trait Implementations
impl Clone for DharmaOpts
[src]
fn clone(&self) -> DharmaOpts
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for DharmaOpts
impl Send for DharmaOpts
impl Sync for DharmaOpts
impl Unpin for DharmaOpts
impl UnwindSafe for DharmaOpts
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,