pub struct CompactionStats {
pub merges: usize,
pub segments_before: usize,
pub segments_after: usize,
pub items_merged: usize,
}Expand description
What a compaction did, for the consumer to track merge cost vs corpus size (the signal that a multi-segment store is outgrowing the search-all-segments model).
Fields§
§merges: usizeNumber of merge operations performed.
segments_before: usizeSegment count before the compaction.
segments_after: usizeSegment count after the compaction.
items_merged: usizeTotal items written into the merged output segment(s).
Trait Implementations§
Source§impl Clone for CompactionStats
impl Clone for CompactionStats
impl Copy for CompactionStats
Source§impl Debug for CompactionStats
impl Debug for CompactionStats
Source§impl Default for CompactionStats
impl Default for CompactionStats
impl Eq for CompactionStats
Source§impl PartialEq for CompactionStats
impl PartialEq for CompactionStats
impl StructuralPartialEq for CompactionStats
Auto Trait Implementations§
impl Freeze for CompactionStats
impl RefUnwindSafe for CompactionStats
impl Send for CompactionStats
impl Sync for CompactionStats
impl Unpin for CompactionStats
impl UnsafeUnpin for CompactionStats
impl UnwindSafe for CompactionStats
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