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