Class GeoShapeCellIdSource
java.lang.Object
org.opensearch.search.aggregations.support.ValuesSource
org.opensearch.search.aggregations.support.ValuesSource.Numeric
org.opensearch.geo.search.aggregations.bucket.geogrid.cells.GeoShapeCellIdSource
ValueSource class which converts the
GeoShapeValue to numeric long values for bucketing. This class uses the
GeoShapeCellIdSource.GeoShapeLongEncoder to encode the geo_shape to Long values which can be iterated
to do the bucket aggregation.- Opensearch.internal:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceEncoder to encode the GeoShapes to the specific long values for the aggregation.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.GeoShape, ValuesSource.Numeric, ValuesSource.Range -
Field Summary
Fields inherited from class org.opensearch.search.aggregations.support.ValuesSource.Numeric
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionGeoShapeCellIdSource(ValuesSource.GeoShape geoShape, int precision, GeoBoundingBox geoBoundingBox, GeoShapeCellIdSource.GeoShapeLongEncoder encoder) -
Method Summary
Modifier and TypeMethodDescriptionbytesValues(LeafReaderContext context) Get the currentSortedBinaryDocValues.doubleValues(LeafReaderContext context) Get the currentSortedNumericDoubleValues.booleanWhether the underlying data is big integer or not.booleanWhether the underlying data is floating-point or not.longValues(LeafReaderContext context) Get the currentSortedNumericDocValues.Methods 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
-
GeoShapeCellIdSource
public GeoShapeCellIdSource(ValuesSource.GeoShape geoShape, int precision, GeoBoundingBox geoBoundingBox, GeoShapeCellIdSource.GeoShapeLongEncoder encoder)
-
-
Method Details
-
bytesValues
Get the currentSortedBinaryDocValues.- Specified by:
bytesValuesin classValuesSource- Parameters:
context-LeafReaderContext- Throws:
IOException
-
isFloatingPoint
public boolean isFloatingPoint()Whether the underlying data is floating-point or not.- Specified by:
isFloatingPointin classValuesSource.Numeric
-
isBigInteger
public boolean isBigInteger()Whether the underlying data is big integer or not.- Specified by:
isBigIntegerin classValuesSource.Numeric
-
longValues
Get the currentSortedNumericDocValues.- Specified by:
longValuesin classValuesSource.Numeric- Parameters:
context-LeafReaderContext
-
doubleValues
Get the currentSortedNumericDoubleValues.- Specified by:
doubleValuesin classValuesSource.Numeric- Parameters:
context-LeafReaderContext
-