Class SortingBinaryDocValues
java.lang.Object
org.elasticsearch.index.fielddata.SortedBinaryDocValues
org.elasticsearch.index.fielddata.SortingBinaryDocValues
- Direct Known Subclasses:
ScriptBytesValues
public abstract class SortingBinaryDocValues extends SortedBinaryDocValues
Base class for building
SortedBinaryDocValues
instances based on unsorted content.-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
SortingBinaryDocValues()
-
Method Summary
Modifier and Type Method Description int
docValueCount()
Retrieves the number of values for the current document.protected void
grow()
org.apache.lucene.util.BytesRef
nextValue()
Iterates to the next value in the current document.protected void
sort()
-
Field Details
-
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
-