Class DoubleScriptDocValues
java.lang.Object
org.elasticsearch.index.fielddata.SortedNumericDoubleValues
org.elasticsearch.index.fielddata.DoubleScriptDocValues
public final class DoubleScriptDocValues extends SortedNumericDoubleValues
-
Method Summary
Modifier and Type Method Description boolean
advanceExact(int docId)
Advance the iterator to exactlytarget
and return whethertarget
has a value.int
docValueCount()
Retrieves the number of values for the current document.double
nextValue()
Iterates to the next value in the current document.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
advanceExact
public boolean advanceExact(int docId)Description copied from class:SortedNumericDoubleValues
Advance the iterator to exactlytarget
and return whethertarget
has a value.target
must be greater than or equal to the current doc ID and must be a valid doc ID, ie. ≥ 0 and <maxDoc
.- Specified by:
advanceExact
in classSortedNumericDoubleValues
-
nextValue
public 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
-
docValueCount
public 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
-