Module org.elasticsearch.server
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 SummaryFieldsFields inherited from class org.apache.lucene.search.DocIdSetIteratorNO_MORE_DOCS
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedprotectedSortingNumericDocValues(LongConsumer circuitBreakerConsumer) 
- 
Method SummaryModifier 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.DocIdSetIteratoradvance, all, cost, docID, empty, nextDoc, range, slowAdvance
- 
Field Details- 
valuesprotected long[] values
- 
valuesCursorprotected int valuesCursor
 
- 
- 
Constructor Details- 
SortingNumericDocValuesprotected SortingNumericDocValues()
- 
SortingNumericDocValues
 
- 
- 
Method Details- 
resizeprotected final void resize(int newSize) Set thedocValueCount()and ensure that thevaluesarray can store at least that many entries.
- 
growExactprotected void growExact(int newValuesLength) Grow the array in a method so we can override it during testing
- 
getArrayLengthprotected int getArrayLength()Get the size of the internal array using a method so we can override it during testing
- 
sortprotected final void sort()
- 
docValueCountpublic final int docValueCount()- Specified by:
- docValueCountin class- org.apache.lucene.index.SortedNumericDocValues
 
- 
nextValuepublic final long nextValue()- Specified by:
- nextValuein class- org.apache.lucene.index.SortedNumericDocValues
 
- 
advanceExact- Throws:
- IOException
 
 
-