MultiPostingsEnum

class MultiPostingsEnum(parent: MultiTermsEnum, subReaderCount: Int) : PostingsEnum

Exposes PostingsEnum, merged from PostingsEnum API of sub-segments.

Constructors

Link copied to clipboard
constructor(parent: MultiTermsEnum, subReaderCount: Int)

Types

Link copied to clipboard

Holds a PostingsEnum along with the corresponding ReaderSlice.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var doc: Int
Link copied to clipboard

How many sub-readers we are merging.

Link copied to clipboard
open override val payload: BytesRef?
Link copied to clipboard
Link copied to clipboard

Returns sub-readers we are merging.

Link copied to clipboard
var upto: Int

Functions

Link copied to clipboard
open override fun advance(target: Int): Int

Advances to the first beyond the current whose document number is greater than or equal to target, and returns the document number itself. Exhausts the iterator and returns .NO_MORE_DOCS if target is greater than the highest document number in the set.

Link copied to clipboard

Returns true if this instance can be reused by the provided MultiTermsEnum.

Link copied to clipboard
open override fun cost(): Long

Returns the estimated cost of this DocIdSetIterator.

Link copied to clipboard
open override fun docID(): Int

Returns the following:

Link copied to clipboard
open override fun endOffset(): Int

Returns end offset for the current position, or -1 if offsets were not indexed.

Link copied to clipboard
open override fun freq(): Int

Returns term frequency in the current document, or 1 if the field was indexed with . Do not call this before .nextDoc is first called, nor after .nextDoc returns DocIdSetIterator.NO_MORE_DOCS.

Link copied to clipboard
open fun intoBitSet(upTo: Int, bitSet: FixedBitSet, offset: Int)

Load doc IDs into a FixedBitSet. This should behave exactly as if implemented as below, which is the default implementation:

Link copied to clipboard
open override fun nextDoc(): Int

Advances to the next document in the set and returns the doc it is currently on, or .NO_MORE_DOCS if there are no more docs in the set.

NOTE: after the iterator has exhausted you should not call this method, as it may result in unpredicted behavior.

Link copied to clipboard
open override fun nextPosition(): Int

Returns the next position, or -1 if positions were not indexed. Calling this more than .freq times is undefined.

Link copied to clipboard

Re-use and reset this instance on the provided slices.

Link copied to clipboard
open override fun startOffset(): Int

Returns start offset for the current position, or -1 if offsets were not indexed.

Link copied to clipboard
open override fun toString(): String