java.lang.Object
org.elasticsearch.search.aggregations.bucket.geogrid.GeoHashBoundedPredicate

public class GeoHashBoundedPredicate extends Object
Filters out geohashes using the provided bounds at the provided precision.
  • Constructor Details

    • GeoHashBoundedPredicate

      public GeoHashBoundedPredicate(int precision, GeoBoundingBox bbox)
  • Method Details

    • validHash

      public boolean validHash(String geohash)
      Check if the provided geohash intersects with the provided bounds.
    • getMaxHashes

      public long getMaxHashes()
      upper bounds on count of geohashes intersecting this bounds at the precision provided in the constructor.