Class CellIdSource
java.lang.Object
org.opensearch.search.aggregations.support.ValuesSource
org.opensearch.search.aggregations.support.ValuesSource.Numeric
org.opensearch.geo.search.aggregations.bucket.geogrid.CellIdSource
Wrapper class to help convert
MultiGeoPointValues
to numeric long values for bucketing.- Opensearch.internal:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe encoder to use to convert a geopoint's (lon, lat, precision) into a long-encoded bucket key for aggregating.Nested classes/interfaces inherited from class org.opensearch.search.aggregations.support.ValuesSource.Numeric
ValuesSource.Numeric.FieldData, ValuesSource.Numeric.Script, ValuesSource.Numeric.WithScriptNested classes/interfaces inherited from class org.opensearch.search.aggregations.support.ValuesSource
ValuesSource.Bytes, ValuesSource.GeoPoint, ValuesSource.Numeric, ValuesSource.Range -
Field Summary
Fields inherited from class org.opensearch.search.aggregations.support.ValuesSource.Numeric
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionCellIdSource(ValuesSource.GeoPoint valuesSource, int precision, GeoBoundingBox geoBoundingBox, CellIdSource.GeoPointLongEncoder encoder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintMethods inherited from class org.opensearch.search.aggregations.support.ValuesSource.Numeric
docsWithValue, roundingPreparerMethods inherited from class org.opensearch.search.aggregations.support.ValuesSource
hasGlobalOrdinals, needsScores
-
Constructor Details
-
CellIdSource
public CellIdSource(ValuesSource.GeoPoint valuesSource, int precision, GeoBoundingBox geoBoundingBox, CellIdSource.GeoPointLongEncoder encoder)
-
-
Method Details
-
precision
public int precision() -
isFloatingPoint
public boolean isFloatingPoint()- Specified by:
isFloatingPointin classValuesSource.Numeric
-
longValues
- Specified by:
longValuesin classValuesSource.Numeric
-
doubleValues
- Specified by:
doubleValuesin classValuesSource.Numeric
-
bytesValues
- Specified by:
bytesValuesin classValuesSource
-