Class GeoEncodingUtils.Component2DPredicate

java.lang.Object
org.apache.lucene.geo.GeoEncodingUtils.Grid
org.apache.lucene.geo.GeoEncodingUtils.Component2DPredicate
Enclosing class:
GeoEncodingUtils

public static class GeoEncodingUtils.Component2DPredicate extends GeoEncodingUtils.Grid
A predicate that checks whether a given point is within a component2D geometry.
  • Field Details

  • 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.