pub enum CompactionTrigger {
L0Overlap,
LevelSize,
MultiTableLevel,
TombstoneDebt,
}Expand description
Reason the compaction picker selected a compaction input.
Variants§
L0Overlap
Level-0 tables overlapped each other or the next level and needed to be closed into a safe output range.
LevelSize
A non-level-0 table level was above its configured byte target.
MultiTableLevel
No higher-priority trigger existed, but a shallow non-level-0 level had multiple tables in the requested range that could be merged downward.
TombstoneDebt
A non-bottom table carried range tombstones with overlapping lower-level data, so it was compacted downward to let the tombstone meet and drop the data it covers instead of lingering on the read path.
Trait Implementations§
Source§impl Clone for CompactionTrigger
impl Clone for CompactionTrigger
Source§fn clone(&self) -> CompactionTrigger
fn clone(&self) -> CompactionTrigger
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CompactionTrigger
Source§impl Debug for CompactionTrigger
impl Debug for CompactionTrigger
impl Eq for CompactionTrigger
Source§impl Ord for CompactionTrigger
impl Ord for CompactionTrigger
Source§fn cmp(&self, other: &CompactionTrigger) -> Ordering
fn cmp(&self, other: &CompactionTrigger) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CompactionTrigger
impl PartialEq for CompactionTrigger
Source§impl PartialOrd for CompactionTrigger
impl PartialOrd for CompactionTrigger
impl StructuralPartialEq for CompactionTrigger
Auto Trait Implementations§
impl Freeze for CompactionTrigger
impl RefUnwindSafe for CompactionTrigger
impl Send for CompactionTrigger
impl Sync for CompactionTrigger
impl Unpin for CompactionTrigger
impl UnsafeUnpin for CompactionTrigger
impl UnwindSafe for CompactionTrigger
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