Class SortingBinaryDocValues
java.lang.Object
org.elasticsearch.index.fielddata.SortedBinaryDocValues
org.elasticsearch.index.fielddata.SortingBinaryDocValues
- Direct Known Subclasses:
ScriptBytesValues
,StringScriptDocValues
Base class for building
SortedBinaryDocValues
instances based on unsorted content.-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class org.elasticsearch.index.fielddata.SortedBinaryDocValues
advanceExact
-
Field Details
-
count
protected int count -
values
protected org.apache.lucene.util.BytesRefBuilder[] values
-
-
Constructor Details
-
SortingBinaryDocValues
protected SortingBinaryDocValues()
-
-
Method Details
-
grow
protected final void grow() -
sort
protected final void sort() -
docValueCount
public int docValueCount()Description copied from class:SortedBinaryDocValues
Retrieves 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:
docValueCount
in classSortedBinaryDocValues
-
nextValue
public final org.apache.lucene.util.BytesRef nextValue()Description copied from class:SortedBinaryDocValues
Iterates to the next value in the current document. Do not call this more thanSortedBinaryDocValues.docValueCount()
times for the document. Note that the returnedBytesRef
might be reused across invocations.- Specified by:
nextValue
in classSortedBinaryDocValues
-