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]

[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]
[src]

Returns the array of docs in the current block.

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

[src]

Return the document at index idx of the block.

Important traits for &'a [u8]
[src]

Return the array of term freq in the block.

[src]

Return the frequency at index idx of the block.

[src]

Advance to the next block.

Returns false iff there was no remaining blocks.

[src]

Returns an empty segment postings object

Trait Implementations

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

The type of the item emitted by this stream.

[src]

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