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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Does the provided bounds crosses the datelinelong
Total number of tiles intersecting this bounds at the precision provided in the constructor.int
leftX()
The left bound on geotile coordinatesint
maxY()
The top bound on geotile coordinatesint
minY()
The bottom bound on geotile coordinatesint
rightX()
The right bound on geotile coordinatesboolean
validTile
(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.
-