Module org.elasticsearch.server
Class GeoTileBoundedPredicate
java.lang.Object
org.elasticsearch.search.aggregations.bucket.geogrid.GeoTileBoundedPredicate
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanDoes the provided bounds crosses the datelinelongTotal number of tiles intersecting this bounds at the precision provided in the constructor.intleftX()The left bound on geotile coordinatesintmaxY()The top bound on geotile coordinatesintminY()The bottom bound on geotile coordinatesintrightX()The right bound on geotile coordinatesbooleanvalidTile(int x, int y, int precision) Check if the provided tile at the provided level intersects with the provided bounds.
-
Constructor Details
-
GeoTileBoundedPredicate
-
-
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.
-