Class TextMultiValues
- java.lang.Object
-
- org.hibernate.search.backend.lucene.lowlevel.docvalues.impl.TextMultiValues
-
- Direct Known Subclasses:
TextMultiValues.DocValuesTextMultiValues
public abstract class TextMultiValues extends Object
A per-document, unordered sequence of text ordinals.Essentially, this is a wrapper around
SortedSetDocValuesthat 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.SortedSetDocValuesof Apache Lucene project.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classTextMultiValues.DocValuesTextMultiValues
-
Field Summary
Fields Modifier and Type Field Description static TextMultiValuesEMPTYAn empty DoubleMultiValues instance that always returnsfalsefromadvanceExact(int)
-
Constructor Summary
Constructors Modifier Constructor Description protectedTextMultiValues()Sole constructor.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleanadvanceExact(int doc)Advance this instance to the given document idstatic TextMultiValuesfromDocValues(org.apache.lucene.index.SortedSetDocValues docValues)abstract longgetValueCount()Returns the number of unique values.abstract booleanhasNextValue()abstract longnextOrd()
-
-
-
Field Detail
-
EMPTY
public static final TextMultiValues EMPTY
An empty DoubleMultiValues instance that always returnsfalsefromadvanceExact(int)
-
-
Method Detail
-
advanceExact
public abstract boolean advanceExact(int doc) throws IOExceptionAdvance this instance to the given document id- Returns:
- true if there is a value for this document
- Throws:
IOException
-
hasNextValue
public abstract boolean hasNextValue() throws IOException- Returns:
- true if there is a next value for this document, i.e. if nextValue() can be called.
- Throws:
IOException
-
nextOrd
public abstract long nextOrd() throws IOException- 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
public static TextMultiValues fromDocValues(org.apache.lucene.index.SortedSetDocValues docValues)
-
-