de.lmu.ifi.dbs.elki.index.tree.spatial.rstarvariants.query
Class RStarTreeUtil

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.index.tree.spatial.rstarvariants.query.RStarTreeUtil

public final class RStarTreeUtil
extends Object

Utility class for RStar trees


Constructor Summary
RStarTreeUtil()
           
 
Method Summary
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.
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RStarTreeUtil

public RStarTreeUtil()
Method Detail

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 type
D - Distance type
Parameters:
tree - Tree to query
distanceQuery - distance query
hints - 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 type
D - Distance type
Parameters:
tree - Tree to query
distanceQuery - distance query
hints - Optimizer hints
Returns:
Query object

Release 0.4.0 (2011-09-20_1324)