Struct rocksdb::rocksdb_options::ColumnFamilyOptions[][src]

pub struct ColumnFamilyOptions {
    pub inner: *mut Options,
    pub titan_inner: *mut DBTitanDBOptions,
    // some fields omitted
}

Fields

inner: *mut Optionstitan_inner: *mut DBTitanDBOptions

Implementations

impl ColumnFamilyOptions[src]

pub fn new() -> ColumnFamilyOptions[src]

pub unsafe fn from_raw(
    inner: *mut Options,
    titan_inner: *mut DBTitanDBOptions
) -> ColumnFamilyOptions
[src]

pub fn set_titandb_options(&mut self, opts: &TitanDBOptions)[src]

pub fn optimize_level_style_compaction(&mut self, memtable_memory_budget: i32)[src]

pub fn set_env(&mut self, env: Arc<Env>)[src]

pub fn set_compaction_filter<S>(
    &mut self,
    name: S,
    filter: Box<dyn CompactionFilter>
) -> Result<(), String> where
    S: Into<Vec<u8>>, 
[src]

Set compaction filter.

filter will be dropped when this option is dropped or a new filter is set.

By default, compaction will only pass keys written after the most recent call to GetSnapshot() to filter.

See also CompactionFilter.

pub fn set_compaction_filter_factory<S>(
    &mut self,
    name: S,
    factory: Box<dyn CompactionFilterFactory>
) -> Result<(), String> where
    S: Into<Vec<u8>>, 
[src]

Set compaction filter factory.

See also CompactionFilterFactory.

pub fn add_table_properties_collector_factory(
    &mut self,
    fname: &str,
    factory: Box<dyn TablePropertiesCollectorFactory>
)
[src]

pub fn compression(&mut self, t: DBCompressionType)[src]

pub fn get_compression(&self) -> DBCompressionType[src]

pub fn set_compression_options(
    &mut self,
    window_bits: i32,
    level: i32,
    strategy: i32,
    max_dict_bytes: i32,
    zstd_max_train_bytes: i32
)
[src]

pub fn set_bottommost_level_compression_options(
    &mut self,
    window_bits: i32,
    level: i32,
    strategy: i32,
    max_dict_bytes: i32,
    zstd_max_train_bytes: i32
)
[src]

pub fn compression_per_level(&mut self, level_types: &[DBCompressionType])[src]

pub fn get_compression_per_level(&self) -> Vec<DBCompressionType>[src]

pub fn bottommost_compression(&self, c: DBCompressionType)[src]

pub fn add_merge_operator(&mut self, name: &str, merge_fn: MergeFn)[src]

pub fn add_comparator(
    &mut self,
    name: &str,
    compare_fn: fn(_: &[u8], _: &[u8]) -> i32
)
[src]

pub fn set_block_cache_size_mb(&mut self, cache_size: u64)[src]

pub fn set_min_write_buffer_number(&mut self, nbuf: c_int)[src]

pub fn get_min_write_buffer_number(&self) -> u32[src]

pub fn set_max_write_buffer_number(&mut self, nbuf: c_int)[src]

pub fn get_max_write_buffer_number(&self) -> u32[src]

pub fn set_write_buffer_size(&mut self, size: u64)[src]

pub fn get_write_buffer_size(&self) -> u64[src]

pub fn set_max_bytes_for_level_base(&mut self, size: u64)[src]

pub fn get_max_bytes_for_level_base(&self) -> u64[src]

pub fn set_max_bytes_for_level_multiplier(&mut self, mul: i32)[src]

pub fn get_max_bytes_for_level_multiplier(&self) -> i32[src]

pub fn set_max_compaction_bytes(&mut self, bytes: u64)[src]

pub fn get_max_compaction_bytes(&self) -> u64[src]

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

pub fn get_level_compaction_dynamic_level_bytes(&self) -> bool[src]

pub fn set_soft_pending_compaction_bytes_limit(&mut self, size: u64)[src]

pub fn get_soft_pending_compaction_bytes_limit(&self) -> u64[src]

pub fn set_hard_pending_compaction_bytes_limit(&mut self, size: u64)[src]

pub fn get_hard_pending_compaction_bytes_limit(&self) -> u64[src]

pub fn set_target_file_size_base(&mut self, size: u64)[src]

pub fn get_target_file_size_base(&self) -> u64[src]

pub fn set_min_write_buffer_number_to_merge(&mut self, to_merge: c_int)[src]

pub fn get_min_write_buffer_number_to_merge(&self) -> u32[src]

pub fn set_level_zero_file_num_compaction_trigger(&mut self, n: c_int)[src]

pub fn get_level_zero_file_num_compaction_trigger(&self) -> u32[src]

pub fn set_level_zero_slowdown_writes_trigger(&mut self, n: c_int)[src]

pub fn get_level_zero_slowdown_writes_trigger(&self) -> u32[src]

pub fn set_level_zero_stop_writes_trigger(&mut self, n: c_int)[src]

pub fn get_level_zero_stop_writes_trigger(&self) -> u32[src]

pub fn set_compaction_style(&mut self, style: DBCompactionStyle)[src]

pub fn compaction_priority(&mut self, priority: CompactionPriority)[src]

pub fn set_disable_auto_compactions(&mut self, disable: bool)[src]

pub fn get_disable_auto_compactions(&self) -> bool[src]

pub fn set_block_based_table_factory(&mut self, factory: &BlockBasedOptions)[src]

pub fn set_report_bg_io_stats(&mut self, enable: bool)[src]

pub fn set_num_levels(&mut self, n: c_int)[src]

pub fn get_num_levels(&self) -> usize[src]

pub fn set_prefix_extractor<S>(
    &mut self,
    name: S,
    transform: Box<dyn SliceTransform>
) -> Result<(), String> where
    S: Into<Vec<u8>>, 
[src]

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

pub fn set_memtable_insert_hint_prefix_extractor<S>(
    &mut self,
    name: S,
    transform: Box<dyn SliceTransform>
) -> Result<(), String> where
    S: Into<Vec<u8>>, 
[src]

pub fn set_memtable_prefix_bloom_size_ratio(&mut self, ratio: f64)[src]

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

pub fn get_force_consistency_checks(&self) -> bool[src]

pub fn get_block_cache_usage(&self) -> u64[src]

pub fn get_blob_cache_usage(&self) -> u64[src]

pub fn set_block_cache_capacity(&self, capacity: u64) -> Result<(), String>[src]

pub fn get_block_cache_capacity(&self) -> u64[src]

pub fn set_blob_cache_capacity(&self, capacity: u64) -> Result<(), String>[src]

pub fn get_blob_cache_capacity(&self) -> u64[src]

pub fn set_fifo_compaction_options(&mut self, fifo_opts: FifoCompactionOptions)[src]

pub fn set_vector_memtable_factory(&mut self, reserved_bytes: u64)[src]

pub fn set_doubly_skiplist(&self)[src]

pub fn get_memtable_factory_name(&self) -> Option<&str>[src]

pub fn set_sst_partitioner_factory<F: SstPartitionerFactory>(
    &mut self,
    factory: F
)
[src]

pub fn set_compact_on_deletion(
    &self,
    sliding_window_size: usize,
    deletion_trigger: usize
)
[src]

Trait Implementations

impl Clone for ColumnFamilyOptions[src]

impl Default for ColumnFamilyOptions[src]

impl Drop for ColumnFamilyOptions[src]

Auto Trait Implementations

impl RefUnwindSafe for ColumnFamilyOptions

impl !Send for ColumnFamilyOptions

impl !Sync for ColumnFamilyOptions

impl Unpin for ColumnFamilyOptions

impl UnwindSafe for ColumnFamilyOptions

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.