Module org.elasticsearch.server
Class SortedBinaryDocValues
java.lang.Object
org.elasticsearch.index.fielddata.SortedBinaryDocValues
- Direct Known Subclasses:
IpScriptDocValues,MultiValuedSortedBinaryDocValues,SortingBinaryDocValues,SourceValueFetcherSortedBinaryIndexFieldData.SourceValueFetcherSortedBinaryDocValues
A list of per-document binary values, sorted
according to
BytesRef.compareTo(BytesRef).
There might be dups however.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDescribes the sparsity of the values for a field.static enumThe per-document value mode for a field. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanadvanceExact(int doc) Advance this instance to the given document idabstract intRetrieves the number of values for the current document.Indicates the sparsity of the values for this field.Indicates the per-document value mode for this field.abstract org.apache.lucene.util.BytesRefIterates to the next value in the current document.
-
Constructor Details
-
SortedBinaryDocValues
public SortedBinaryDocValues()
-
-
Method Details
-
advanceExact
Advance this instance to the given document id- Returns:
- true if there is a value for this document
- Throws:
IOException
-
docValueCount
public abstract int docValueCount()Retrieves the number of values for the current document. This must always be greater than zero. It is illegal to call this method afteradvanceExact(int)returnedfalse. -
nextValue
Iterates to the next value in the current document. Do not call this more thandocValueCount()times for the document. Note that the returnedBytesRefmight be reused across invocations.- Throws:
IOException
-
getSparsity
Indicates the sparsity of the values for this field. -
getValueMode
Indicates the per-document value mode for this field.
-