[][src]Struct rexrocksdb::rocksdb_options::BlockBasedOptions

pub struct BlockBasedOptions { /* fields omitted */ }

Methods

impl BlockBasedOptions[src]

pub fn new() -> BlockBasedOptions[src]

pub fn set_block_size(&mut self, size: usize)[src]

pub fn set_lru_cache(
    &mut self,
    size: size_t,
    shard_bits: c_int,
    capacity_limit: c_uchar,
    pri_ratio: c_double
)
[src]

the recommanded shard_bits is 6, also you can set a larger value as long as it is smaller than 20, also you can set shard_bits to -1, RocksDB will choose a value for you the recommanded capacity_limit is 0(false) if your memory is sufficient the recommanded pri_ratio should be 0.05 or 0.1

pub fn set_no_block_cache(&mut self, v: bool)[src]

pub fn set_bloom_filter(&mut self, bits_per_key: c_int, block_based: bool)[src]

pub fn set_cache_index_and_filter_blocks(&mut self, v: bool)[src]

pub fn set_cache_index_and_filter_blocks_with_high_priority(&mut self, v: bool)[src]

pub fn set_whole_key_filtering(&mut self, v: bool)[src]

pub fn set_pin_l0_filter_and_index_blocks_in_cache(&mut self, v: bool)[src]

pub fn set_read_amp_bytes_per_bit(&mut self, v: u32)[src]

pub fn set_index_type(&mut self, index_type: c_int)[src]

Trait Implementations

impl Drop for BlockBasedOptions[src]

impl Default for BlockBasedOptions[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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