Class GeoShapeHashUtil
java.lang.Object
org.opensearch.geo.search.aggregations.bucket.geogrid.util.GeoShapeHashUtil
We have a
Geohash class present at the libs level, not using that because while encoding the shapes we need
GeoShapeDocValue. This class provided the utilities encode the shape as GeoHashes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionencodeShape(GeoShapeDocValue geoShapeDocValue, int precision) The function encodes the shape provided asGeoShapeDocValueto aListofLongvalues (representing the GeoHashes) which are intersecting with the shapes at a given precision.
-
Constructor Details
-
GeoShapeHashUtil
public GeoShapeHashUtil()
-
-
Method Details
-
encodeShape
The function encodes the shape provided asGeoShapeDocValueto aListofLongvalues (representing the GeoHashes) which are intersecting with the shapes at a given precision.- Parameters:
geoShapeDocValue-GeoShapeDocValueprecision- int- Returns:
Listcontaining encodedLongvalues
-