Struct rocksdb::CompactOptions
source · pub struct CompactOptions { /* private fields */ }
Implementations§
source§impl CompactOptions
impl CompactOptions
sourcepub fn set_exclusive_manual_compaction(&mut self, v: bool)
pub fn set_exclusive_manual_compaction(&mut self, v: bool)
If more than one thread calls manual compaction, only one will actually schedule it while the other threads will simply wait for the scheduled manual compaction to complete. If exclusive_manual_compaction is set to true, the call will disable scheduling of automatic compaction jobs and wait for existing automatic compaction jobs to finish.
sourcepub fn set_bottommost_level_compaction(
&mut self,
lvl: BottommostLevelCompaction,
)
pub fn set_bottommost_level_compaction( &mut self, lvl: BottommostLevelCompaction, )
Sets bottommost level compaction.
sourcepub fn set_change_level(&mut self, v: bool)
pub fn set_change_level(&mut self, v: bool)
If true, compacted files will be moved to the minimum level capable of holding the data or given level (specified non-negative target_level).
sourcepub fn set_target_level(&mut self, lvl: c_int)
pub fn set_target_level(&mut self, lvl: c_int)
If change_level is true and target_level have non-negative value, compacted files will be moved to target_level.
Trait Implementations§
source§impl Default for CompactOptions
impl Default for CompactOptions
source§impl Drop for CompactOptions
impl Drop for CompactOptions
impl Send for CompactOptions
impl Sync for CompactOptions
Auto Trait Implementations§
impl Freeze for CompactOptions
impl RefUnwindSafe for CompactOptions
impl Unpin for CompactOptions
impl UnwindSafe for CompactOptions
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