Class SortingNumericDocValues
java.lang.Object
org.apache.lucene.search.DocIdSetIterator
org.apache.lucene.index.SortedNumericDocValues
org.elasticsearch.index.fielddata.SortingNumericDocValues
- Direct Known Subclasses:
AbstractSortingNumericDocValues
public abstract class SortingNumericDocValues
extends org.apache.lucene.index.SortedNumericDocValues
Base class for building
SortedNumericDocValues instances based on unsorted content.-
Field Summary
FieldsFields inherited from class org.apache.lucene.search.DocIdSetIterator
NO_MORE_DOCS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedSortingNumericDocValues(LongConsumer circuitBreakerConsumer) -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanadvanceExact(int arg0) final intprotected intGet the size of the internal array using a method so we can override it during testingprotected voidgrowExact(int newValuesLength) Grow the array in a method so we can override it during testingfinal longprotected final voidresize(int newSize) Set thedocValueCount()and ensure that thevaluesarray can store at least that many entries.protected final voidsort()Methods inherited from class org.apache.lucene.search.DocIdSetIterator
advance, all, cost, docID, empty, nextDoc, range, slowAdvance
-
Field Details
-
values
protected long[] values -
valuesCursor
protected int valuesCursor
-
-
Constructor Details
-
SortingNumericDocValues
protected SortingNumericDocValues() -
SortingNumericDocValues
-
-
Method Details
-
resize
protected final void resize(int newSize) Set thedocValueCount()and ensure that thevaluesarray can store at least that many entries. -
growExact
protected void growExact(int newValuesLength) Grow the array in a method so we can override it during testing -
getArrayLength
protected int getArrayLength()Get the size of the internal array using a method so we can override it during testing -
sort
protected final void sort() -
docValueCount
public final int docValueCount()- Specified by:
docValueCountin classorg.apache.lucene.index.SortedNumericDocValues
-
nextValue
public final long nextValue()- Specified by:
nextValuein classorg.apache.lucene.index.SortedNumericDocValues
-
advanceExact
- Throws:
IOException
-