Class RStarTreeUtil


  • public final class RStarTreeUtil
    extends java.lang.Object
    Utility class for RStar trees.
    Since:
    0.4.0
    Author:
    Erich Schubert
    • Constructor Detail

      • RStarTreeUtil

        private RStarTreeUtil()
        Private constructor. Static methods only.
    • Method Detail

      • getRangeQuery

        public static <O extends SpatialComparableRangeSearcher<O> getRangeQuery​(AbstractRStarTree<?,​?,​?> tree,
                                                                                   SpatialDistanceQuery<O> distanceQuery,
                                                                                   java.lang.Object... hints)
        Get an RTree range query, using an optimized version for Euclidean distances.
        Type Parameters:
        O - Object type
        Parameters:
        tree - Tree to query
        distanceQuery - distance query
        hints - Optimizer hints
        Returns:
        Query object
      • getKNNQuery

        public static <O extends SpatialComparableKNNSearcher<O> getKNNQuery​(AbstractRStarTree<?,​?,​?> tree,
                                                                               SpatialDistanceQuery<O> distanceQuery,
                                                                               java.lang.Object... hints)
        Get an RTree knn query, using an optimized version for Euclidean distances.
        Type Parameters:
        O - Object type
        Parameters:
        tree - Tree to query
        distanceQuery - distance query
        hints - Optimizer hints
        Returns:
        Query object
      • getDistancePrioritySearcher

        public static <O extends SpatialComparablePrioritySearcher<O> getDistancePrioritySearcher​(AbstractRStarTree<?,​?,​?> tree,
                                                                                                    SpatialDistanceQuery<O> distanceQuery,
                                                                                                    java.lang.Object... hints)
        Get an RTree priority searcher.
        Type Parameters:
        O - Object type
        Parameters:
        tree - Tree to query
        distanceQuery - distance query
        hints - Optimizer hints
        Returns:
        Query object