Class ScriptLongValues
- java.lang.Object
-
- org.apache.lucene.search.DocIdSetIterator
-
- org.apache.lucene.index.SortedNumericDocValues
-
- org.elasticsearch.index.fielddata.SortingNumericDocValues
-
- org.elasticsearch.index.fielddata.AbstractSortingNumericDocValues
-
- org.elasticsearch.search.aggregations.support.values.ScriptLongValues
-
- All Implemented Interfaces:
ScorerAware
public class ScriptLongValues extends AbstractSortingNumericDocValues implements ScorerAware
LongValuesimplementation which is based on a script
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.index.fielddata.SortingNumericDocValues
values, valuesCursor
-
Fields inherited from class org.apache.lucene.search.DocIdSetIterator
NO_MORE_DOCS
-
-
Constructor Summary
Constructors Constructor Description ScriptLongValues(AggregationScript script)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadvanceExact(int target)Advance the iterator to exactlytargetand return whethertargethas a value.voidsetScorer(Scorable scorer)-
Methods inherited from class org.elasticsearch.index.fielddata.AbstractSortingNumericDocValues
advance, cost, docID, nextDoc
-
Methods inherited from class org.elasticsearch.index.fielddata.SortingNumericDocValues
docValueCount, nextValue, resize, sort
-
Methods inherited from class org.apache.lucene.search.DocIdSetIterator
all, empty, range, slowAdvance
-
-
-
-
Constructor Detail
-
ScriptLongValues
public ScriptLongValues(AggregationScript script)
-
-
Method Detail
-
advanceExact
public boolean advanceExact(int target) throws IOExceptionAdvance the iterator to exactlytargetand return whethertargethas a value.targetmust be greater than or equal to the currentdoc IDand must be a valid doc ID, ie. ≥ 0 and <maxDoc. After this method returns,DocIdSetIterator.docID()returnstarget.- Throws:
IOException
-
setScorer
public void setScorer(Scorable scorer)
- Specified by:
setScorerin interfaceScorerAware
-
-