java.lang.Object
org.apache.lucene.document.SpatialQuery.SpatialVisitor
- Enclosing class:
SpatialQuery
Visitor used for walking the BKD tree.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Function<byte[], Component2D.WithinRelation> contains()Gets a contains function.private Predicate<byte[]> private BiFunction<byte[], byte[], PointValues.Relation> getInnerFunction(ShapeField.QueryRelation queryRelation) private Predicate<byte[]> getLeafPredicate(ShapeField.QueryRelation queryRelation) protected abstract Predicate<byte[]> Gets a intersects predicate.protected abstract PointValues.Relationrelate(byte[] minPackedValue, byte[] maxPackedValue) relates a range of points (internal node) to the queryprotected abstract Predicate<byte[]> within()Gets a within predicate.
-
Constructor Details
-
SpatialVisitor
protected SpatialVisitor()
-
-
Method Details
-
relate
relates a range of points (internal node) to the query -
intersects
Gets a intersects predicate. Called when constructing aScorer -
within
Gets a within predicate. Called when constructing aScorer -
contains
Gets a contains function. Called when constructing aScorer -
containsPredicate
-
getInnerFunction
private BiFunction<byte[],byte[], getInnerFunctionPointValues.Relation> (ShapeField.QueryRelation queryRelation) -
getLeafPredicate
-