Module org.elasticsearch.server
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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intRetrieves the number of values for the current document.final doubleIterates to the next value in the current document.protected final voidresize(int newSize) Set thedocValueCount()and ensure that thevaluesarray can store at least that many entries.protected final voidsort()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 thevaluesarray can store at least that many entries. -
sort
protected final void sort() -
docValueCount
public final int docValueCount()Description copied from class:SortedNumericDoubleValuesRetrieves 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:
docValueCountin classSortedNumericDoubleValues
-
nextValue
public final double nextValue()Description copied from class:SortedNumericDoubleValuesIterates to the next value in the current document. Do not call this more thanSortedNumericDoubleValues.docValueCount()times for the document.- Specified by:
nextValuein classSortedNumericDoubleValues
-