pub struct RoaringBlockInfo {
pub container_key: u16,
pub first_doc_id: u32,
pub last_doc_id: u32,
pub max_tf: u32,
pub max_block_score: f32,
pub num_docs: u32,
}Expand description
Block metadata for BlockMax WAND optimization in Roaring
Fields§
§container_key: u16High 16 bits (container key)
first_doc_id: u32First doc_id in this container
last_doc_id: u32Last doc_id in this container
max_tf: u32Maximum term frequency in this block
max_block_score: f32Upper bound BM25 score for this block
num_docs: u32Number of documents in this container
Implementations§
Trait Implementations§
Source§impl Clone for RoaringBlockInfo
impl Clone for RoaringBlockInfo
Source§fn clone(&self) -> RoaringBlockInfo
fn clone(&self) -> RoaringBlockInfo
Returns a duplicate of the value. Read more
1.0.0 · 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 RoaringBlockInfo
impl RefUnwindSafe for RoaringBlockInfo
impl Send for RoaringBlockInfo
impl Sync for RoaringBlockInfo
impl Unpin for RoaringBlockInfo
impl UnwindSafe for RoaringBlockInfo
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