mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-06-01 16:10:42 +00:00
NOBUG added advance_block
This commit is contained in:
@@ -263,7 +263,7 @@ mod tests {
|
||||
|
||||
b.iter(|| {
|
||||
let mut segment_postings = segment_reader.read_postings(&*TERM_A, SegmentPostingsOption::NoFreq).unwrap();
|
||||
while segment_postings.advance() {}
|
||||
while segment_postings.advance_block() {}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -103,7 +103,10 @@ impl<'a> SegmentPostings<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
pub fn advance_block(&mut self) -> bool {
|
||||
self.block_cursor.advance()
|
||||
}
|
||||
|
||||
/// Returns an empty segment postings object
|
||||
pub fn empty() -> SegmentPostings<'static> {
|
||||
let empty_block_cursor = SegmentPostingsBlockCursor::empty();
|
||||
|
||||
Reference in New Issue
Block a user