pub struct SegMeta {
pub doc_count: u64,
pub total_tokens: u64,
pub dead_tokens: u64,
pub dead: Vec<u64>,
pub level: u32,
pub term_rows: u64,
pub posting_count: u64,
pub logical_xor: u64,
pub logical_sum: u64,
}Expand description
Per-(field, segment) manifest. The logical hashes are computed from the source postings before the candidate is written and recomputed by the independently reopened verifier. Counts catch truncation; the two differently seeded hashes catch changed/reordered logical records.
Fields§
§doc_count: u64§total_tokens: u64§dead_tokens: u64Token occurrences belonging to dead docs, captured from the norm row at delete time – so avg document length is identical before and after a fold physically drops the dead (score-drift bug).
dead: Vec<u64>§level: u32§term_rows: u64§posting_count: u64§logical_xor: u64§logical_sum: u64Implementations§
Trait Implementations§
impl Eq for SegMeta
impl StructuralPartialEq for SegMeta
Auto Trait Implementations§
impl Freeze for SegMeta
impl RefUnwindSafe for SegMeta
impl Send for SegMeta
impl Sync for SegMeta
impl Unpin for SegMeta
impl UnsafeUnpin for SegMeta
impl UnwindSafe for SegMeta
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