pub struct LeveledCompactionStrategyBuilder { /* private fields */ }
Expand description
Builder for LeveledCompactionStrategy
.
Implementations§
Source§impl LeveledCompactionStrategyBuilder
impl LeveledCompactionStrategyBuilder
pub fn enabled(&mut self, value: bool) -> &mut Self
pub fn tombstone_threshold(&mut self, value: f32) -> &mut Self
pub fn tombstone_compaction_interval(&mut self, value: i32) -> &mut Self
pub fn log_all(&mut self, value: bool) -> &mut Self
pub fn unchecked_tombstone_compaction(&mut self, value: bool) -> &mut Self
pub fn only_purge_repaired_tombstone(&mut self, value: bool) -> &mut Self
pub fn min_threshold(&mut self, value: i32) -> &mut Self
pub fn max_threshold(&mut self, value: i32) -> &mut Self
pub fn sstable_size_in_mb(&mut self, value: i32) -> &mut Self
pub fn fanout_size(&mut self, value: i32) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<LeveledCompactionStrategy, LeveledCompactionStrategyBuilderError>
pub fn build( &self, ) -> Result<LeveledCompactionStrategy, LeveledCompactionStrategyBuilderError>
Trait Implementations§
Source§impl Clone for LeveledCompactionStrategyBuilder
impl Clone for LeveledCompactionStrategyBuilder
Source§fn clone(&self) -> LeveledCompactionStrategyBuilder
fn clone(&self) -> LeveledCompactionStrategyBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for LeveledCompactionStrategyBuilder
impl RefUnwindSafe for LeveledCompactionStrategyBuilder
impl Send for LeveledCompactionStrategyBuilder
impl Sync for LeveledCompactionStrategyBuilder
impl Unpin for LeveledCompactionStrategyBuilder
impl UnwindSafe for LeveledCompactionStrategyBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more