pub struct ConsolidationStats {
pub runs_started: u64,
pub runs_completed: u64,
pub segments_merged: u64,
pub tombstones_reclaimed: u64,
pub bytes_reclaimed: u64,
}Expand description
Consolidation counters for one collection (ADR 0073 §5).
These replace the compact_ops counter, which only ever counted a
do-nothing branch.
Fields§
§runs_started: u64Consolidations that crossed a threshold and began copying.
runs_completed: u64Consolidations that finished the swap.
segments_merged: u64Source segments retired by a completed swap.
tombstones_reclaimed: u64Tombstones garbage-collected by completed swaps.
bytes_reclaimed: u64Logical source-to-merged footprint reduction; readers may retain sources.
Trait Implementations§
Source§impl Clone for ConsolidationStats
impl Clone for ConsolidationStats
impl Copy for ConsolidationStats
Source§impl Debug for ConsolidationStats
impl Debug for ConsolidationStats
Source§impl Default for ConsolidationStats
impl Default for ConsolidationStats
impl Eq for ConsolidationStats
Source§impl PartialEq for ConsolidationStats
impl PartialEq for ConsolidationStats
impl StructuralPartialEq for ConsolidationStats
Auto Trait Implementations§
impl Freeze for ConsolidationStats
impl RefUnwindSafe for ConsolidationStats
impl Send for ConsolidationStats
impl Sync for ConsolidationStats
impl Unpin for ConsolidationStats
impl UnsafeUnpin for ConsolidationStats
impl UnwindSafe for ConsolidationStats
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,
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