Class OrdinalsTupleCursor
java.lang.Object
org.apache.lucene.document.column.OrdinalsTupleCursor
A tuple cursor over a
DictionaryColumn. Yields (docID, ordinal) pairs.
Batch-local doc-ids are returned in non-decreasing order; the same doc-id may repeat for
multi-valued fields (e.g. SORTED_SET).
Each ordinal must be in [0, column.dictionary().length).
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract intnextDoc()Advances to the next tuple and returns its batch-local doc-id, orDocIdSetIterator.NO_MORE_DOCSif exhausted.abstract intordValue()Returns the ordinal at the current cursor position.
-
Constructor Details
-
OrdinalsTupleCursor
public OrdinalsTupleCursor()
-
-
Method Details
-
nextDoc
public abstract int nextDoc()Advances to the next tuple and returns its batch-local doc-id, orDocIdSetIterator.NO_MORE_DOCSif exhausted.Returned doc-ids are batch-local (
0tonumDocs - 1) and are emitted in non-decreasing order. The same doc-id may be returned multiple times when a document has multiple values. -
ordValue
public abstract int ordValue()Returns the ordinal at the current cursor position. Only valid after a successfulnextDoc()call that returned a value other thanDocIdSetIterator.NO_MORE_DOCS.The returned value must be in
[0, dictionary.length)wheredictionaryis the enclosing column's dictionary.
-