pub struct VerticalBP128Iterator<'a> { /* private fields */ }Expand description
Iterator over SIMD-BP128 posting list
Implementations§
Source§impl<'a> VerticalBP128Iterator<'a>
impl<'a> VerticalBP128Iterator<'a>
pub fn new(list: &'a VerticalBP128PostingList) -> Self
Sourcepub fn max_remaining_score(&self) -> f32
pub fn max_remaining_score(&self) -> f32
Get max score for remaining blocks
Sourcepub fn current_block_max_score(&self) -> f32
pub fn current_block_max_score(&self) -> f32
Get current block’s max score
Sourcepub fn current_block_max_tf(&self) -> u32
pub fn current_block_max_tf(&self) -> u32
Get current block’s max TF
Sourcepub fn skip_to_block_with_doc(&mut self, target: u32) -> Option<(u32, f32)>
pub fn skip_to_block_with_doc(&mut self, target: u32) -> Option<(u32, f32)>
Skip to next block containing doc >= target (for BlockWAND) Returns (first_doc_in_block, block_max_score) or None if exhausted
Sourcepub fn is_exhausted(&self) -> bool
pub fn is_exhausted(&self) -> bool
Check if iterator is exhausted
Auto Trait Implementations§
impl<'a> Freeze for VerticalBP128Iterator<'a>
impl<'a> RefUnwindSafe for VerticalBP128Iterator<'a>
impl<'a> Send for VerticalBP128Iterator<'a>
impl<'a> Sync for VerticalBP128Iterator<'a>
impl<'a> Unpin for VerticalBP128Iterator<'a>
impl<'a> UnwindSafe for VerticalBP128Iterator<'a>
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> 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