pub struct BatchStats {
pub changes: usize,
pub documents: usize,
pub documents_by_index: Vec<(IndexName, usize)>,
pub flush: Duration,
}Expand description
What one committed batch did — reported to Observer::on_batch_committed.
Fields§
§changes: usizeChanges buffered into this batch (what BatchPolicy
caps).
documents: usizeDistinct documents the batch built and wrote — <= changes after the
per-batch dedup. Equals the sum of documents_by_index.
documents_by_index: Vec<(IndexName, usize)>Documents built per target index, for per-index metrics. One entry per index the batch touched.
flush: DurationHow long the flush that made the batch
durable took.
Trait Implementations§
Source§impl Clone for BatchStats
impl Clone for BatchStats
Source§fn clone(&self) -> BatchStats
fn clone(&self) -> BatchStats
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 moreAuto Trait Implementations§
impl Freeze for BatchStats
impl RefUnwindSafe for BatchStats
impl Send for BatchStats
impl Sync for BatchStats
impl Unpin for BatchStats
impl UnsafeUnpin for BatchStats
impl UnwindSafe for BatchStats
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