Class ScriptDoubleValues
- java.lang.Object
-
- org.elasticsearch.index.fielddata.SortedNumericDoubleValues
-
- org.elasticsearch.index.fielddata.SortingNumericDoubleValues
-
- org.elasticsearch.search.aggregations.support.values.ScriptDoubleValues
-
- All Implemented Interfaces:
ScorerAware
public class ScriptDoubleValues extends SortingNumericDoubleValues implements ScorerAware
SortingNumericDoubleValues
implementation which is based on a script
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.index.fielddata.SortingNumericDoubleValues
values
-
-
Constructor Summary
Constructors Constructor Description ScriptDoubleValues(SearchScript script)
-
Method Summary
Modifier and Type Method Description boolean
advanceExact(int target)
Advance the iterator to exactlytarget
and return whethertarget
has a value.void
setScorer(org.apache.lucene.search.Scorer scorer)
-
Methods inherited from class org.elasticsearch.index.fielddata.SortingNumericDoubleValues
docValueCount, nextValue, resize, sort
-
-
-
-
Constructor Detail
-
ScriptDoubleValues
public ScriptDoubleValues(SearchScript script)
-
-
Method Detail
-
advanceExact
public boolean advanceExact(int target) throws java.io.IOException
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
- Throws:
java.io.IOException
-
setScorer
public void setScorer(org.apache.lucene.search.Scorer scorer)
- Specified by:
setScorer
in interfaceScorerAware
-
-