Class JudgementBase<U extends org.locationtech.jts.geom.Geometry>
java.lang.Object
org.apache.sedona.core.rangeJudgement.JudgementBase<U>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RangeFilter,RangeFilterUsingIndex
public class JudgementBase<U extends org.locationtech.jts.geom.Geometry>
extends Object
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJudgementBase(U queryWindow, boolean considerBoundaryIntersection, boolean leftCoveredByRight) Instantiates a new range filter using index.JudgementBase(U queryWindow, SpatialPredicate spatialPredicate) Instantiates a new range filter using index. -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatch(org.locationtech.jts.geom.Geometry spatialObject, org.locationtech.jts.geom.Geometry queryWindow) static SpatialPredicateresolveSpatialPredicate(boolean considerBoundaryIntersection, boolean leftCoveredByRight)
-
Constructor Details
-
JudgementBase
Instantiates a new range filter using index.- Parameters:
queryWindow- the query windowspatialPredicate- spatial predicate in query criteriageom <spatialPredicate> queryWindow
-
JudgementBase
public JudgementBase(U queryWindow, boolean considerBoundaryIntersection, boolean leftCoveredByRight) Instantiates a new range filter using index.- Parameters:
queryWindow- the query windowconsiderBoundaryIntersection- the consider boundary intersectionleftCoveredByRight- query window covered by geometry, or query window covers geometry. only effective whenconsiderBoundaryIntersectionwas false
-
-
Method Details
-
match
public boolean match(org.locationtech.jts.geom.Geometry spatialObject, org.locationtech.jts.geom.Geometry queryWindow) -
resolveSpatialPredicate
public static SpatialPredicate resolveSpatialPredicate(boolean considerBoundaryIntersection, boolean leftCoveredByRight)
-