
@Reference(authors="J. Kuan, P. Lewis", title="Fast k nearest neighbour search for R-tree family", booktitle="Proc. Int. Conf Information, Communications and Signal Processing, ICICS 1997", url="http://dx.doi.org/10.1109/ICICS.1997.652114") public class GenericRStarTreeRangeQuery<O extends SpatialComparable,D extends Distance<D>> extends AbstractDistanceRangeQuery<O,D>
J. Kuan, P. Lewis
Fast k nearest neighbour search for R-tree family
In Proc. Int. Conf Information, Communications and Signal Processing, ICICS
1997
| Modifier and Type | Field and Description |
|---|---|
protected SpatialPrimitiveDistanceFunction<? super O,D> |
distanceFunction
Spatial primitive distance function
|
protected AbstractRStarTree<?,?> |
tree
The index to use
|
distanceQueryrelationHINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE| Constructor and Description |
|---|
GenericRStarTreeRangeQuery(AbstractRStarTree<?,?> tree,
SpatialDistanceQuery<O,D> distanceQuery)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected DistanceDBIDResult<D> |
doRangeQuery(O object,
D epsilon)
Perform the actual query process.
|
DistanceDBIDResult<D> |
getRangeForDBID(DBIDRef id,
D range)
Get the nearest neighbors for a particular id in a given query range
|
DistanceDBIDResult<D> |
getRangeForObject(O obj,
D range)
Get the nearest neighbors for a particular object in a given query range
|
getRelationprotected final AbstractRStarTree<?,?> tree
protected final SpatialPrimitiveDistanceFunction<? super O extends SpatialComparable,D extends Distance<D>> distanceFunction
public GenericRStarTreeRangeQuery(AbstractRStarTree<?,?> tree, SpatialDistanceQuery<O,D> distanceQuery)
tree - Index to usedistanceQuery - Distance query to useprotected DistanceDBIDResult<D> doRangeQuery(O object, D epsilon)
object - Query objectepsilon - Query rangepublic DistanceDBIDResult<D> getRangeForObject(O obj, D range)
RangeQuerygetRangeForObject in interface RangeQuery<O extends SpatialComparable,D extends Distance<D>>getRangeForObject in class AbstractDistanceRangeQuery<O extends SpatialComparable,D extends Distance<D>>obj - Query objectrange - Query rangepublic DistanceDBIDResult<D> getRangeForDBID(DBIDRef id, D range)
RangeQuerygetRangeForDBID in interface RangeQuery<O extends SpatialComparable,D extends Distance<D>>getRangeForDBID in class AbstractDistanceRangeQuery<O extends SpatialComparable,D extends Distance<D>>id - query object IDrange - Query range