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 protected
SortingNumericDoubleValues()
-
Method Summary
Modifier and Type Method Description int
docValueCount()
Retrieves the number of values for the current document.double
nextValue()
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
Methods 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 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
-