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 buildingSortedBinaryDocValuesinstances based on unsorted content.
-
-
Field Summary
Fields Modifier and Type Field Description protected intcountprotected BytesRefBuilder[]values
-
Constructor Summary
Constructors Modifier Constructor Description protectedSortingBinaryDocValues()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdocValueCount()Retrieves the number of values for the current document.protected voidgrow()BytesRefnextValue()Iterates to the next value in the current document.protected voidsort()-
Methods inherited from class org.elasticsearch.index.fielddata.SortedBinaryDocValues
advanceExact
-
-
-
-
Field Detail
-
count
protected int count
-
values
protected BytesRefBuilder[] values
-
-
Method Detail
-
grow
protected final void grow()
-
sort
protected final void sort()
-
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
-
nextValue
public final BytesRef 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
-
-