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: usize
The minimum number of files to merge at once.
optimal_merge_count: usize
The optimal number of files to merge at once.
max_merge_count: usize
The maximum number of files to merge at once.
max_merge_bytes: u64
The maximum size of all files to merge at once.
min_merge_duplication_bytes: u64
The amount of duplication that need to be in a merge job to be considered for merging.
optimal_merge_duplication_bytes: u64
The optimal duplication size for merging.
max_merge_segment_count: usize
The maximum number of merge segments to determine.
Trait Implementations§
Auto 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
§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