pub struct CompactOptions {
pub file_threshold: usize,
pub recompact_threshold: usize,
pub consolidate: bool,
pub dry_run: bool,
pub session_filter: Option<String>,
}Expand description
Options for compaction operations.
Fields§
§file_threshold: usizeCompact when a session has more than this many non-compacted files.
recompact_threshold: usizeRe-compact when a session has more than this many compacted files. Set to 0 to disable re-compaction.
consolidate: boolIf true, consolidate ALL files (including compacted) into a single file.
dry_run: boolIf true, don’t actually make changes.
session_filter: Option<String>If set, only compact files for this specific session.
Trait Implementations§
Source§impl Clone for CompactOptions
impl Clone for CompactOptions
Source§fn clone(&self) -> CompactOptions
fn clone(&self) -> CompactOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompactOptions
impl Debug for CompactOptions
Auto Trait Implementations§
impl Freeze for CompactOptions
impl RefUnwindSafe for CompactOptions
impl Send for CompactOptions
impl Sync 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