Struct rocksdb::BlockBasedOptions [−][src]
pub struct BlockBasedOptions { /* fields omitted */ }
For configuring block-based file storage.
Methods
impl BlockBasedOptions
[src]
impl BlockBasedOptions
pub fn set_block_size(&mut self, size: usize)
[src]
pub fn set_block_size(&mut self, size: usize)
pub fn set_lru_cache(&mut self, size: size_t)
[src]
pub fn set_lru_cache(&mut self, size: size_t)
pub fn disable_cache(&mut self)
[src]
pub fn disable_cache(&mut self)
pub fn set_bloom_filter(&mut self, bits_per_key: c_int, block_based: bool)
[src]
pub fn set_bloom_filter(&mut self, bits_per_key: c_int, block_based: bool)
pub fn set_cache_index_and_filter_blocks(&mut self, v: bool)
[src]
pub fn set_cache_index_and_filter_blocks(&mut self, v: bool)
pub fn set_index_type(&mut self, index_type: BlockBasedIndexType)
[src]
pub fn set_index_type(&mut self, index_type: BlockBasedIndexType)
Defines the index type to be used for SS-table lookups.
Example
use rocksdb::{BlockBasedOptions, BlockBasedIndexType, Options}; let mut opts = Options::default(); let mut block_opts = BlockBasedOptions::default(); block_opts.set_index_type(BlockBasedIndexType::HashSearch);
Trait Implementations
impl Drop for BlockBasedOptions
[src]
impl Drop for BlockBasedOptions
impl Default for BlockBasedOptions
[src]
impl Default for BlockBasedOptions
fn default() -> BlockBasedOptions
[src]
fn default() -> BlockBasedOptions
Returns the "default value" for a type. Read more
Auto Trait Implementations
impl !Send for BlockBasedOptions
impl !Send for BlockBasedOptions
impl !Sync for BlockBasedOptions
impl !Sync for BlockBasedOptions