Module org.elasticsearch.server
Class CellIdSource.CellMultiValues
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.bucket.geogrid.CellIdSource.CellMultiValues
- Enclosing class:
- CellIdSource
protected abstract static class CellIdSource.CellMultiValues
extends AbstractSortingNumericDocValues
Class representing the long-encoded grid-cells belonging to
the multi-value geo-doc-values. Class must encode the values and then
sort them in order to account for the cells correctly.
-
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
ModifierConstructorDescriptionprotected
CellMultiValues
(MultiGeoPointValues geoValues, int precision) -
Method Summary
Modifier and TypeMethodDescriptionboolean
advanceExact
(int docId) protected abstract int
advanceValue
(GeoPoint target, int valuesIdx) Sets the appropriate long-encoded value fortarget
invalues
.Methods inherited from class org.elasticsearch.index.fielddata.AbstractSortingNumericDocValues
advance, cost, docID, 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
-
Field Details
-
precision
protected final int precision
-
-
Constructor Details
-
CellMultiValues
-
-
Method Details
-
advanceExact
- Throws:
IOException
-
advanceValue
Sets the appropriate long-encoded value fortarget
invalues
.- Parameters:
target
- the geo-value to encodevaluesIdx
- the index intovalues
to set- Returns:
- valuesIdx + 1 if value was set, valuesIdx otherwise.
-