Package org.apache.lucene.geo
Class GeoEncodingUtils.Component2DPredicate
java.lang.Object
org.apache.lucene.geo.GeoEncodingUtils.Grid
org.apache.lucene.geo.GeoEncodingUtils.Component2DPredicate
- Enclosing class:
- GeoEncodingUtils
A predicate that checks whether a given point is within a component2D geometry.
-
Field Summary
FieldsFields inherited from class org.apache.lucene.geo.GeoEncodingUtils.Grid
ARITY, latBase, latShift, lonBase, lonShift, maxLatDelta, maxLonDelta, relations
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Component2DPredicate
(int latShift, int lonShift, int latBase, int lonBase, int maxLatDelta, int maxLonDelta, byte[] relations, Component2D tree) -
Method Summary
Modifier and TypeMethodDescriptionboolean
test
(int lat, int lon) Check whether the given point is within the considered polygon.
-
Field Details
-
tree
-
-
Constructor Details
-
Component2DPredicate
private Component2DPredicate(int latShift, int lonShift, int latBase, int lonBase, int maxLatDelta, int maxLonDelta, byte[] relations, Component2D tree)
-
-
Method Details
-
test
public boolean test(int lat, int lon) Check whether the given point is within the considered polygon. NOTE: this operates directly on the encoded representation of points.
-