pub struct FrozenBucket {
pub terms: BTreeMap<Vec<u8>, Vec<u8>>,
pub fwd: BTreeMap<Vec<u8>, Vec<u8>>,
pub n_docs: u64,
pub total_len: u64,
}Expand description
One slide batch’s worth of frozen text entries: term → encoded posting payload, in term order (the segment builder’s key order), plus the bucket’s contribution to the corpus statistics.
Fields§
§terms: BTreeMap<Vec<u8>, Vec<u8>>term → encode_posting payload, ascending by term.
fwd: BTreeMap<Vec<u8>, Vec<u8>>row key → encode_fwd payload, ascending by key — the
forward records a later tombstone reads back to withdraw this
document’s statistics contribution exactly.
n_docs: u64Documents frozen.
total_len: u64Their summed (unweighted) token length.
Auto Trait Implementations§
impl Freeze for FrozenBucket
impl RefUnwindSafe for FrozenBucket
impl Send for FrozenBucket
impl Sync for FrozenBucket
impl Unpin for FrozenBucket
impl UnsafeUnpin for FrozenBucket
impl UnwindSafe for FrozenBucket
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