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

public class GeoTileBoundedPredicate extends Object
Filters out tiles using the provided bounds at the provided precision. In order to be efficient it works on the X/Y coordinates of the geotile scheme.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Does the provided bounds crosses the dateline
    long
    Total number of tiles intersecting this bounds at the precision provided in the constructor.
    int
    The left bound on geotile coordinates
    int
    The top bound on geotile coordinates
    int
    The bottom bound on geotile coordinates
    int
    The right bound on geotile coordinates
    boolean
    validTile(int x, int y, int precision)
    Check if the provided tile at the provided level intersects with the provided bounds.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GeoTileBoundedPredicate

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

    • crossesDateline

      public boolean crossesDateline()
      Does the provided bounds crosses the dateline
    • leftX

      public int leftX()
      The left bound on geotile coordinates
    • rightX

      public int rightX()
      The right bound on geotile coordinates
    • minY

      public int minY()
      The bottom bound on geotile coordinates
    • maxY

      public int maxY()
      The top bound on geotile coordinates
    • validTile

      public boolean validTile(int x, int y, int precision)
      Check if the provided tile at the provided level intersects with the provided bounds. The provided precision must be lower or equal to the precision provided in the constructor.
    • getMaxTiles

      public long getMaxTiles()
      Total number of tiles intersecting this bounds at the precision provided in the constructor.