Class TextMultiValues
java.lang.Object
org.hibernate.search.backend.lucene.lowlevel.docvalues.impl.TextMultiValues
- Direct Known Subclasses:
TextMultiValues.DocValuesTextMultiValues
A per-document, unordered sequence of text ordinals.
Essentially, this is a wrapper around SortedSetDocValues that may support joins,
but does not guarantee that ordinals for a given documents are returned in ascending order.
Some of this code was copied and adapted from
org.apache.lucene.index.SortedSetDocValues
of Apache Lucene project.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TextMultiValuesAn empty DoubleMultiValues instance that always returnsfalsefromadvanceExact(int) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanadvanceExact(int doc) Advance this instance to the given document idstatic TextMultiValuesfromDocValues(org.apache.lucene.index.SortedSetDocValues docValues) abstract longReturns the number of unique values.abstract booleanabstract longnextOrd()
-
Field Details
-
EMPTY
An empty DoubleMultiValues instance that always returnsfalsefromadvanceExact(int)
-
-
Constructor Details
-
TextMultiValues
protected TextMultiValues()Sole constructor. (For invocation by subclass constructors, typically implicit.)
-
-
Method Details
-
advanceExact
Advance this instance to the given document id- Returns:
- true if there is a value for this document
- Throws:
IOException
-
hasNextValue
- Returns:
- true if there is a next value for this document, i.e. if nextValue() can be called.
- Throws:
IOException
-
nextOrd
- Returns:
- The next value for the current document.
Can only be called after
hasNextValue()returnedtrue. - Throws:
IOException
-
getValueCount
public abstract long getValueCount()Returns the number of unique values.- Returns:
- number of unique values in this SortedDocValues. This is also equivalent to one plus the maximum ordinal.
-
fromDocValues
-