[−][src]Struct rexrocksdb::rocksdb_options::BlockBasedOptions
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]
&mut self,
size: size_t,
shard_bits: c_int,
capacity_limit: c_uchar,
pri_ratio: c_double
)
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]
fn default() -> BlockBasedOptions
[src]
Auto Trait Implementations
impl !Send for BlockBasedOptions
impl !Sync for BlockBasedOptions
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,