Class RStarTreeUtil
- java.lang.Object
-
- elki.index.tree.spatial.rstarvariants.query.RStarTreeUtil
-
public final class RStarTreeUtil extends java.lang.Object
Utility class for RStar trees.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Modifier Constructor Description private
RStarTreeUtil()
Private constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <O extends SpatialComparable>
PrioritySearcher<O>getDistancePrioritySearcher(AbstractRStarTree<?,?,?> tree, SpatialDistanceQuery<O> distanceQuery, java.lang.Object... hints)
Get an RTree priority searcher.static <O extends SpatialComparable>
KNNSearcher<O>getKNNQuery(AbstractRStarTree<?,?,?> tree, SpatialDistanceQuery<O> distanceQuery, java.lang.Object... hints)
Get an RTree knn query, using an optimized version for Euclidean distances.static <O extends SpatialComparable>
RangeSearcher<O>getRangeQuery(AbstractRStarTree<?,?,?> tree, SpatialDistanceQuery<O> distanceQuery, java.lang.Object... hints)
Get an RTree range query, using an optimized version for Euclidean distances.
-
-
-
Method Detail
-
getRangeQuery
public static <O extends SpatialComparable> RangeSearcher<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 querydistanceQuery
- distance queryhints
- Optimizer hints- Returns:
- Query object
-
getKNNQuery
public static <O extends SpatialComparable> KNNSearcher<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 querydistanceQuery
- distance queryhints
- Optimizer hints- Returns:
- Query object
-
getDistancePrioritySearcher
public static <O extends SpatialComparable> PrioritySearcher<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 querydistanceQuery
- distance queryhints
- Optimizer hints- Returns:
- Query object
-
-