MultiSortedDocValues

class MultiSortedDocValues(values: Array<SortedDocValues>, docStarts: IntArray, mapping: OrdinalMap, totalCost: Long) : SortedDocValues

Implements SortedDocValues over n subs, using an OrdinalMap

Constructors

Link copied to clipboard
constructor(values: Array<SortedDocValues>, docStarts: IntArray, mapping: OrdinalMap, totalCost: Long)

Properties

Link copied to clipboard

docbase for each leaf: parallel with .values

Link copied to clipboard

ordinal map mapping ords from values to global ord space

Link copied to clipboard
open override val valueCount: Int

Returns the number of unique values.

Link copied to clipboard

leaf values

Functions

Link copied to clipboard
open override fun advance(targetDocID: 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
open override fun advanceExact(targetDocID: Int): Boolean

Advance the iterator to exactly target and return whether target has a value. target must be greater than or equal to the current .docID and must be a valid doc ID, ie. 0 and <maxDoc. After this method returns, .docID returns target.

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 fun intersect(automaton: CompiledAutomaton): TermsEnum?

Returns a TermsEnum over the values, filtered by a CompiledAutomaton The enum supports TermsEnum.ord.

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 lookupOrd(ord: Int): BytesRef?

Retrieves the value for the specified ordinal. The returned BytesRef may be re-used across calls to .lookupOrd so make sure to copy it if you want to keep it around.

Link copied to clipboard
open fun lookupTerm(key: BytesRef): Int

If key exists, returns its ordinal, else returns -insertionPoint-1, like Arrays.binarySearch.

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 ordValue(): Int

Returns the ordinal for the current docID. It is illegal to call this method after .advanceExact returned false.

Link copied to clipboard
open fun termsEnum(): TermsEnum?

Returns a TermsEnum over the values. The enum supports TermsEnum.ord and TermsEnum.seekExact.