Module org.elasticsearch.server
Class MultiValuedSortedBinaryDocValues
java.lang.Object
org.elasticsearch.index.fielddata.SortedBinaryDocValues
org.elasticsearch.index.fielddata.MultiValuedSortedBinaryDocValues
Wrapper around
BinaryDocValues to decode the typical multivalued encoding-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.fielddata.SortedBinaryDocValues
SortedBinaryDocValues.Sparsity, SortedBinaryDocValues.ValueMode -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanadvanceExact(int doc) Advance this instance to the given document idintRetrieves the number of values for the current document.from(org.apache.lucene.index.LeafReader leafReader, String valuesFieldName, org.apache.lucene.index.BinaryDocValues values) abstract org.apache.lucene.util.BytesRefIterates to the next value in the current document.Methods inherited from class org.elasticsearch.index.fielddata.SortedBinaryDocValues
getSparsity, getValueMode
-
Method Details
-
from
public static MultiValuedSortedBinaryDocValues from(org.apache.lucene.index.LeafReader leafReader, String valuesFieldName) throws IOException - Throws:
IOException
-
from
public static MultiValuedSortedBinaryDocValues from(org.apache.lucene.index.LeafReader leafReader, String valuesFieldName, org.apache.lucene.index.BinaryDocValues values) throws IOException - Throws:
IOException
-
docValueCount
public int docValueCount()Description copied from class:SortedBinaryDocValuesRetrieves the number of values for the current document. This must always be greater than zero. It is illegal to call this method afterSortedBinaryDocValues.advanceExact(int)returnedfalse.- Specified by:
docValueCountin classSortedBinaryDocValues
-
advanceExact
Description copied from class:SortedBinaryDocValuesAdvance this instance to the given document id- Specified by:
advanceExactin classSortedBinaryDocValues- Returns:
- true if there is a value for this document
- Throws:
IOException
-
nextValue
Description copied from class:SortedBinaryDocValuesIterates to the next value in the current document. Do not call this more thanSortedBinaryDocValues.docValueCount()times for the document. Note that the returnedBytesRefmight be reused across invocations.- Specified by:
nextValuein classSortedBinaryDocValues- Throws:
IOException
-