Struct rocksdb::TitanDBOptions [−][src]
Fields
inner: *mut DBTitanDBOptions
Implementations
impl TitanDBOptions
[src]
pub fn new() -> Self
[src]
pub fn dirname(&self) -> &str
[src]
pub fn set_dirname(&mut self, name: &str)
[src]
pub fn min_blob_size(&self) -> u64
[src]
pub fn set_min_blob_size(&mut self, size: u64)
[src]
pub fn blob_file_compression(&self) -> DBCompressionType
[src]
pub fn set_blob_file_compression(&mut self, t: 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_disable_background_gc(&mut self, disable: bool)
[src]
pub fn set_level_merge(&mut self, enable: bool)
[src]
pub fn set_range_merge(&mut self, enable: bool)
[src]
pub fn set_max_sorted_runs(&mut self, size: i32)
[src]
pub fn set_max_background_gc(&mut self, size: i32)
[src]
pub fn set_purge_obsolete_files_period(&mut self, period: usize)
[src]
pub fn set_min_gc_batch_size(&mut self, size: u64)
[src]
pub fn set_max_gc_batch_size(&mut self, size: u64)
[src]
pub fn set_blob_cache(
&mut self,
size: usize,
shard_bits: c_int,
capacity_limit: bool,
pri_ratio: c_double
)
[src]
&mut self,
size: usize,
shard_bits: c_int,
capacity_limit: bool,
pri_ratio: c_double
)
pub fn set_discardable_ratio(&mut self, ratio: f64)
[src]
pub fn set_sample_ratio(&mut self, ratio: f64)
[src]
pub fn set_merge_small_file_threshold(&mut self, size: u64)
[src]
pub fn set_blob_run_mode(&mut self, t: DBTitanDBBlobRunMode)
[src]
pub fn set_gc_merge_rewrite(&mut self, enable: bool)
[src]
Trait Implementations
impl Drop for TitanDBOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for TitanDBOptions
impl !Send for TitanDBOptions
impl !Sync for TitanDBOptions
impl Unpin for TitanDBOptions
impl UnwindSafe for TitanDBOptions
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, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,