pub struct HorizontalBP128Iterator<'a> { /* private fields */ }Expand description
Iterator over bitpacked posting list with block skipping support
Implementations§
Source§impl<'a> HorizontalBP128Iterator<'a>
impl<'a> HorizontalBP128Iterator<'a>
pub fn new(posting_list: &'a HorizontalBP128PostingList) -> Self
Sourcepub fn seek(&mut self, target: u32) -> u32
pub fn seek(&mut self, target: u32) -> u32
Seek to first doc >= target (with block skipping and binary search)
Sourcepub fn max_remaining_score(&self) -> f32
pub fn max_remaining_score(&self) -> f32
Get max score for remaining blocks (for MaxScore optimization)
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 (for BlockWAND)
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 term frequency (for BM25F upper bound recalculation)
Auto Trait Implementations§
impl<'a> Freeze for HorizontalBP128Iterator<'a>
impl<'a> RefUnwindSafe for HorizontalBP128Iterator<'a>
impl<'a> Send for HorizontalBP128Iterator<'a>
impl<'a> Sync for HorizontalBP128Iterator<'a>
impl<'a> Unpin for HorizontalBP128Iterator<'a>
impl<'a> UnwindSafe for HorizontalBP128Iterator<'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