Class SpatialQuery.SpatialVisitor

  • Enclosing class:
    SpatialQuery

    protected abstract static class SpatialQuery.SpatialVisitor
    extends java.lang.Object
    Visitor used for walking the BKD tree.
    • Constructor Detail

      • SpatialVisitor

        protected SpatialVisitor()
    • 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 a Scorer
      • within

        protected abstract java.util.function.Predicate<byte[]> within()
        Gets a within predicate. Called when constructing a Scorer
      • contains

        protected abstract java.util.function.Function<byte[],​Component2D.WithinRelation> contains()
        Gets a contains function. Called when constructing a Scorer
      • containsPredicate

        private java.util.function.Predicate<byte[]> containsPredicate()
      • getLeafPredicate

        private java.util.function.Predicate<byte[]> getLeafPredicate​(ShapeField.QueryRelation queryRelation)