Class SortingNumericDoubleValues
java.lang.Object
org.elasticsearch.index.fielddata.SortedNumericDoubleValues
org.elasticsearch.index.fielddata.SortingNumericDoubleValues
- Direct Known Subclasses:
ScriptDoubleValues
public abstract class SortingNumericDoubleValues extends SortedNumericDoubleValues
Base class for building
SortedNumericDoubleValues instances based on unsorted content.-
Field Summary
Fields Modifier and Type Field Description protected double[]values -
Constructor Summary
Constructors Modifier Constructor Description protectedSortingNumericDoubleValues() -
Method Summary
Modifier and Type Method Description intdocValueCount()Retrieves the number of values for the current document.doublenextValue()Iterates to the next value in the current document.protected voidresize(int newSize)Set thedocValueCount()and ensure that thevaluesarray can store at least that many entries.protected voidsort()Methods inherited from class org.elasticsearch.index.fielddata.SortedNumericDoubleValues
advanceExactMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-