Class IntersectsRPTVerifyQuery
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.apache.lucene.spatial.composite.IntersectsRPTVerifyQuery
-
public class IntersectsRPTVerifyQuery extends Query
A spatial Intersects predicate that distinguishes an approximated match from an exact match based on which cells are within the query shape. It exposes aTwoPhaseIteratorthat will verify a match with a provided predicate in the form of an ShapeValuesPredicate.- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description IntersectsRPTVerifyQuery(org.locationtech.spatial4j.shape.Shape queryShape, String fieldName, SpatialPrefixTree grid, int detailLevel, int prefixGridScanLevel, ShapeValuesPredicate predicateValueSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WeightcreateWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)booleanequals(Object other)inthashCode()StringtoString(String field)voidvisit(QueryVisitor visitor)
-
-
-
Constructor Detail
-
IntersectsRPTVerifyQuery
public IntersectsRPTVerifyQuery(org.locationtech.spatial4j.shape.Shape queryShape, String fieldName, SpatialPrefixTree grid, int detailLevel, int prefixGridScanLevel, ShapeValuesPredicate predicateValueSource)
-
-
Method Detail
-
visit
public void visit(QueryVisitor visitor)
-
createWeight
public Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException
- Overrides:
createWeightin classQuery- Throws:
IOException
-
-