Struct tantivy::postings::BlockSegmentPostings[][src]

pub struct BlockSegmentPostings { /* fields omitted */ }

BlockSegmentPostings is a cursor iterating over blocks of documents.

Warning

While it is useful for some very specific high-performance use cases, you should prefer using SegmentPostings for most usage.

Methods

impl BlockSegmentPostings
[src]

Returns the document frequency associated to this block postings.

This doc_freq is simply the sum of the length of all of the blocks length, and it does not take in account deleted documents.

Important traits for &'a [u8]

Returns the array of docs in the current block.

Before the first call to .advance(), the block returned by .docs() is empty.

Return the document at index idx of the block.

Important traits for &'a [u8]

Return the array of term freq in the block.

Return the frequency at index idx of the block.

Advance to the next block.

Returns false iff there was no remaining blocks.

Returns an empty segment postings object

Trait Implementations

impl<'b> Streamer<'b> for BlockSegmentPostings
[src]

The type of the item emitted by this stream.

Emits the next element in this stream, or None to indicate the stream has been exhausted. Read more

Auto Trait Implementations