de.lmu.ifi.dbs.elki.index.tree.spatial.rstarvariants.query
Class RStarTreeUtil
java.lang.Object
de.lmu.ifi.dbs.elki.index.tree.spatial.rstarvariants.query.RStarTreeUtil
public final class RStarTreeUtil
- extends Object
Utility class for RStar trees
Method Summary |
static
|
getKNNQuery(AbstractRStarTree<?,?> tree,
SpatialDistanceQuery<O,D> distanceQuery,
Object... hints)
Get an RTree knn query, using an optimized double implementation when
possible. |
static
|
getRangeQuery(AbstractRStarTree<?,?> tree,
SpatialDistanceQuery<O,D> distanceQuery,
Object... hints)
Get an RTree range query, using an optimized double implementation when
possible. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RStarTreeUtil
public RStarTreeUtil()
getRangeQuery
public static <O extends SpatialComparable,D extends Distance<D>> RangeQuery<O,D> getRangeQuery(AbstractRStarTree<?,?> tree,
SpatialDistanceQuery<O,D> distanceQuery,
Object... hints)
- Get an RTree range query, using an optimized double implementation when
possible.
- Type Parameters:
O
- Object typeD
- Distance type- Parameters:
tree
- Tree to querydistanceQuery
- distance queryhints
- Optimizer hints
- Returns:
- Query object
getKNNQuery
public static <O extends SpatialComparable,D extends Distance<D>> KNNQuery<O,D> getKNNQuery(AbstractRStarTree<?,?> tree,
SpatialDistanceQuery<O,D> distanceQuery,
Object... hints)
- Get an RTree knn query, using an optimized double implementation when
possible.
- Type Parameters:
O
- Object typeD
- Distance type- Parameters:
tree
- Tree to querydistanceQuery
- distance queryhints
- Optimizer hints
- Returns:
- Query object