Class AbstractSortingNumericDocValues
java.lang.Object
org.apache.lucene.search.DocIdSetIterator
org.apache.lucene.index.SortedNumericDocValues
org.elasticsearch.index.fielddata.SortingNumericDocValues
org.elasticsearch.index.fielddata.AbstractSortingNumericDocValues
- Direct Known Subclasses:
ScriptLongValues
public abstract class AbstractSortingNumericDocValues extends SortingNumericDocValues
Base implementation that throws an
IOException
for the
DocIdSetIterator
APIs. This impl is safe to use for sorting and
aggregations, which only use advanceExact(int)
and
SortingNumericDocValues.docValueCount()
and SortingNumericDocValues.nextValue()
.-
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 AbstractSortingNumericDocValues()
AbstractSortingNumericDocValues(java.util.function.LongConsumer circuitBreakerConsumer)
-
Method Summary
Modifier and Type Method Description int
advance(int target)
abstract boolean
advanceExact(int arg0)
long
cost()
int
docID()
int
nextDoc()
Methods inherited from class org.elasticsearch.index.fielddata.SortingNumericDocValues
docValueCount, getArrayLength, growExact, nextValue, resize, sort
Methods inherited from class org.apache.lucene.search.DocIdSetIterator
all, empty, range, slowAdvance
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
AbstractSortingNumericDocValues
public AbstractSortingNumericDocValues() -
AbstractSortingNumericDocValues
public AbstractSortingNumericDocValues(java.util.function.LongConsumer circuitBreakerConsumer)
-
-
Method Details
-
docID
public int docID()- Specified by:
docID
in classorg.apache.lucene.search.DocIdSetIterator
-
nextDoc
public int nextDoc() throws java.io.IOException- Specified by:
nextDoc
in classorg.apache.lucene.search.DocIdSetIterator
- Throws:
java.io.IOException
-
advance
public int advance(int target) throws java.io.IOException- Specified by:
advance
in classorg.apache.lucene.search.DocIdSetIterator
- Throws:
java.io.IOException
-
cost
public long cost()- Specified by:
cost
in classorg.apache.lucene.search.DocIdSetIterator
-
advanceExact
public abstract boolean advanceExact(int arg0) throws java.io.IOException- Throws:
java.io.IOException
-