pub struct CompactConfig {
pub min_merge_count: usize,
pub optimal_merge_count: usize,
pub max_merge_count: usize,
pub max_merge_bytes: u64,
pub min_merge_duplication_bytes: u64,
pub optimal_merge_duplication_bytes: u64,
pub max_merge_segment_count: usize,
}Expand description
Configuration for the compaction algorithm.
Fields§
§min_merge_count: usizeThe minimum number of files to merge at once.
optimal_merge_count: usizeThe optimal number of files to merge at once.
max_merge_count: usizeThe maximum number of files to merge at once.
max_merge_bytes: u64The maximum size of all files to merge at once.
min_merge_duplication_bytes: u64The amount of duplication that need to be in a merge job to be considered for merging.
optimal_merge_duplication_bytes: u64The optimal duplication size for merging.
max_merge_segment_count: usizeThe maximum number of merge segments to determine.
Trait Implementations§
Source§impl Clone for CompactConfig
impl Clone for CompactConfig
Source§fn clone(&self) -> CompactConfig
fn clone(&self) -> CompactConfig
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 moreAuto Trait Implementations§
impl Freeze for CompactConfig
impl RefUnwindSafe for CompactConfig
impl Send for CompactConfig
impl Sync for CompactConfig
impl Unpin for CompactConfig
impl UnwindSafe for CompactConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more