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
Fields Modifier and Type Field Description protected long[]valuesprotected intvaluesCursor -
Constructor Summary
Constructors Modifier Constructor Description protectedSortingNumericDocValues() -
Method Summary
Modifier and Type Method Description abstract booleanadvanceExact(int arg0)intdocValueCount()longnextValue()protected voidresize(int newSize)Set thedocValueCount()and ensure that thevaluesarray can store at least that many entries.protected voidsort()
-
Field Details
-
values
protected long[] values -
valuesCursor
protected int valuesCursor
-
-
Constructor Details
-
SortingNumericDocValues
protected SortingNumericDocValues()
-
-
Method Details
-
resize
protected final void resize(int newSize)Set thedocValueCount()and ensure that thevaluesarray can store at least that many entries. -
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
public abstract boolean advanceExact(int arg0) throws java.io.IOException- Throws:
java.io.IOException
-