Class SortingNumericDoubleValues
java.lang.Object
org.elasticsearch.index.fielddata.SortedNumericDoubleValues
org.elasticsearch.index.fielddata.SortingNumericDoubleValues
- Direct Known Subclasses:
ScriptDoubleValues
Base class for building
SortedNumericDoubleValues
instances based on unsorted content.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Retrieves the number of values for the current document.double
Iterates to the next value in the current document.protected void
resize(int newSize)
Set thedocValueCount()
and ensure that thevalues
array can store at least that many entries.protected void
sort()
Methods inherited from class org.elasticsearch.index.fielddata.SortedNumericDoubleValues
advanceExact
-
Field Details
-
values
protected double[] values
-
-
Constructor Details
-
SortingNumericDoubleValues
protected SortingNumericDoubleValues()
-
-
Method Details
-
resize
protected final void resize(int newSize)Set thedocValueCount()
and ensure that thevalues
array can store at least that many entries. -
sort
protected final void sort() -
docValueCount
public final int docValueCount()Description copied from class:SortedNumericDoubleValues
Retrieves the number of values for the current document. This must always be greater than zero. It is illegal to call this method afterSortedNumericDoubleValues.advanceExact(int)
returnedfalse
.- Specified by:
docValueCount
in classSortedNumericDoubleValues
-
nextValue
public final double nextValue()Description copied from class:SortedNumericDoubleValues
Iterates to the next value in the current document. Do not call this more thanSortedNumericDoubleValues.docValueCount()
times for the document.- Specified by:
nextValue
in classSortedNumericDoubleValues
-