Struct tantivy::postings::SegmentPostings [] [src]

pub struct SegmentPostings { /* fields omitted */ }

SegmentPostings represents the inverted list or postings associated to a term in a Segment.

As we iterate through the SegmentPostings, the frequencies are optionally decoded. Positions on the other hand, are optionally entirely decoded upfront.

Methods

impl SegmentPostings
[src]

[src]

Reads a Segment postings from an &[u8]

  • len - number of document in the posting lists.
  • data - data array. The complete data is not necessarily used.
  • freq_handler - the freq handler is in charge of decoding frequencies and/or positions

[src]

Returns an empty segment postings object

Trait Implementations

impl DocSet for SegmentPostings
[src]

[src]

Goes to the next element. .advance(...) needs to be called a first time to point to the correct element. Read more

[src]

After skipping, position the iterator in such a way that .doc() will return a value greater than or equal to target. Read more

[src]

Returns a best-effort hint of the length of the docset. Read more

[src]

Return the current document's DocId.

[src]

Appends all docs to a bitset.

[src]

Fills a given mutable buffer with the next doc ids from the DocSet Read more

[src]

Advances the cursor to the next document None is returned if the iterator has DocSet has already been entirely consumed. Read more

impl HasLen for SegmentPostings
[src]

[src]

Return length

[src]

Returns true iff empty.

impl Postings for SegmentPostings
[src]

[src]

Returns the term frequency

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

Returns the list of positions of the term, expressed as a list of token ordinals. Read more