Class StGeohash.GeoHashBoundedGrid
java.lang.Object
org.elasticsearch.xpack.esql.expression.function.scalar.spatial.StGeohash.GeoHashBoundedGrid
- All Implemented Interfaces:
SpatialGridFunction.BoundedGrid
- Enclosing class:
StGeohash
protected static class StGeohash.GeoHashBoundedGrid
extends Object
implements SpatialGridFunction.BoundedGrid
When checking grid cells with bounds, we need to check if the cell is valid (intersects with the bounds).
This uses GeoHashBoundedPredicate to check if the grid cell is valid.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionlongcalculateGridId(org.elasticsearch.geometry.Point point) int
-
Method Details
-
calculateGridId
public long calculateGridId(org.elasticsearch.geometry.Point point) - Specified by:
calculateGridIdin interfaceSpatialGridFunction.BoundedGrid
-
precision
public int precision()- Specified by:
precisionin interfaceSpatialGridFunction.BoundedGrid
-