Struct engine_rocks::raw::ColumnFamilyOptions [−][src]
Fields
inner: *mut Options
titan_inner: *mut DBTitanDBOptions
env: Option<Arc<Env>>
filter: Option<CompactionFilterHandle>
Implementations
impl ColumnFamilyOptions
[src]
pub fn new() -> ColumnFamilyOptions
[src]
pub unsafe fn from_raw(
inner: *mut Options,
titan_inner: *mut DBTitanDBOptions
) -> ColumnFamilyOptions
[src]
inner: *mut Options,
titan_inner: *mut DBTitanDBOptions
) -> ColumnFamilyOptions
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 + 'static, Global>
) -> Result<(), String> where
S: Into<Vec<u8, Global>>,
[src]
&mut self,
name: S,
filter: Box<dyn CompactionFilter + 'static, Global>
) -> Result<(), String> where
S: Into<Vec<u8, Global>>,
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 + 'static, Global>
) -> Result<(), String> where
S: Into<Vec<u8, Global>>,
[src]
&mut self,
name: S,
factory: Box<dyn CompactionFilterFactory + 'static, Global>
) -> Result<(), String> where
S: Into<Vec<u8, Global>>,
Set compaction filter factory.
See also CompactionFilterFactory
.
pub fn add_table_properties_collector_factory(
&mut self,
fname: &str,
factory: Box<dyn TablePropertiesCollectorFactory + 'static, Global>
)
[src]
&mut self,
fname: &str,
factory: Box<dyn TablePropertiesCollectorFactory + 'static, Global>
)
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]
&mut self,
window_bits: i32,
level: i32,
strategy: i32,
max_dict_bytes: i32,
zstd_max_train_bytes: i32
)
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]
&mut self,
window_bits: i32,
level: i32,
strategy: i32,
max_dict_bytes: i32,
zstd_max_train_bytes: i32
)
pub fn compression_per_level(&mut self, level_types: &[DBCompressionType])
[src]
pub fn get_compression_per_level(&self) -> Vec<DBCompressionType, Global>
[src]
pub fn bottommost_compression(&self, c: DBCompressionType)
[src]
pub fn add_merge_operator(
&mut self,
name: &str,
merge_fn: fn(&[u8], Option<&[u8]>, &mut MergeOperands) -> Vec<u8, Global>
)
[src]
&mut self,
name: &str,
merge_fn: fn(&[u8], Option<&[u8]>, &mut MergeOperands) -> Vec<u8, Global>
)
pub fn add_comparator(
&mut self,
name: &str,
compare_fn: fn(&[u8], &[u8]) -> i32
)
[src]
&mut self,
name: &str,
compare_fn: fn(&[u8], &[u8]) -> i32
)
pub fn set_block_cache_size_mb(&mut self, cache_size: u64)
[src]
pub fn set_min_write_buffer_number(&mut self, nbuf: i32)
[src]
pub fn get_min_write_buffer_number(&self) -> u32
[src]
pub fn set_max_write_buffer_number(&mut self, nbuf: i32)
[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: i32)
[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: i32)
[src]
pub fn get_level_zero_file_num_compaction_trigger(&self) -> u32
[src]
pub fn set_level_zero_slowdown_writes_trigger(&mut self, n: i32)
[src]
pub fn get_level_zero_slowdown_writes_trigger(&self) -> u32
[src]
pub fn set_level_zero_stop_writes_trigger(&mut self, n: i32)
[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: i32)
[src]
pub fn get_num_levels(&self) -> usize
[src]
pub fn set_prefix_extractor<S>(
&mut self,
name: S,
transform: Box<dyn SliceTransform + 'static, Global>
) -> Result<(), String> where
S: Into<Vec<u8, Global>>,
[src]
&mut self,
name: S,
transform: Box<dyn SliceTransform + 'static, Global>
) -> Result<(), String> where
S: Into<Vec<u8, Global>>,
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 + 'static, Global>
) -> Result<(), String> where
S: Into<Vec<u8, Global>>,
[src]
&mut self,
name: S,
transform: Box<dyn SliceTransform + 'static, Global>
) -> Result<(), String> where
S: Into<Vec<u8, Global>>,
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>(&mut self, factory: F) where
F: SstPartitionerFactory,
[src]
F: SstPartitionerFactory,
pub fn set_compact_on_deletion(
&self,
sliding_window_size: usize,
deletion_trigger: usize
)
[src]
&self,
sliding_window_size: usize,
deletion_trigger: usize
)
Trait Implementations
impl Clone for ColumnFamilyOptions
[src]
pub fn clone(&self) -> ColumnFamilyOptions
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for ColumnFamilyOptions
[src]
pub fn default() -> 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]
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> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
[src]
T: ?Sized,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,