Module org.elasticsearch.server
Class CellIdSource.CellMultiValues
java.lang.Object
org.elasticsearch.index.fielddata.SortedNumericLongValues
org.elasticsearch.index.fielddata.SortingNumericLongValues
org.elasticsearch.search.aggregations.bucket.geogrid.CellIdSource.CellMultiValues
- Enclosing class:
CellIdSource
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
FieldsFields inherited from class org.elasticsearch.index.fielddata.SortingNumericLongValues
values, valuesCursorFields inherited from class org.elasticsearch.index.fielddata.SortedNumericLongValues
EMPTY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCellMultiValues(MultiGeoPointValues geoValues, int precision, LongConsumer circuitBreakerConsumer) -
Method Summary
Modifier and TypeMethodDescriptionbooleanadvanceExact(int docId) Advance the iterator to exactlytargetand return whethertargethas a value.protected abstract intadvanceValue(GeoPoint target, int valuesIdx) Sets the appropriate long-encoded value fortargetinvalues.Methods inherited from class org.elasticsearch.index.fielddata.SortingNumericLongValues
docValueCount, getArrayLength, growExact, nextValue, resize, sortMethods inherited from class org.elasticsearch.index.fielddata.SortedNumericLongValues
singleton, unwrapSingleton, wrap
-
Field Details
-
precision
protected final int precision
-
-
Constructor Details
-
CellMultiValues
protected CellMultiValues(MultiGeoPointValues geoValues, int precision, LongConsumer circuitBreakerConsumer)
-
-
Method Details
-
advanceExact
Description copied from class:SortedNumericLongValuesAdvance the iterator to exactlytargetand return whethertargethas a value.targetmust be greater than or equal to the current doc ID and must be a valid doc ID, ie. ≥ 0 and <maxDoc.- Specified by:
advanceExactin classSortedNumericLongValues- Throws:
IOException
-
advanceValue
Sets the appropriate long-encoded value fortargetinvalues.- Parameters:
target- the geo-value to encodevaluesIdx- the index intovaluesto set- Returns:
- valuesIdx + 1 if value was set, valuesIdx otherwise.
-