
@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 DoubleDistanceRStarTreeRangeQuery<O extends SpatialComparable> extends AbstractDistanceRangeQuery<O,DoubleDistance>
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 SpatialPrimitiveDoubleDistanceFunction<? super O> |
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 |
|---|
DoubleDistanceRStarTreeRangeQuery(AbstractRStarTree<?,?> tree,
DistanceQuery<O,DoubleDistance> distanceQuery,
SpatialPrimitiveDoubleDistanceFunction<? super O> distanceFunction)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected DoubleDistanceDBIDList |
doRangeQuery(O object,
double epsilon)
Perform the actual query process.
|
DistanceDBIDResult<DoubleDistance> |
getRangeForDBID(DBIDRef id,
DoubleDistance range)
Get the nearest neighbors for a particular id in a given query range
|
DistanceDBIDResult<DoubleDistance> |
getRangeForObject(O obj,
DoubleDistance range)
Get the nearest neighbors for a particular object in a given query range
|
getRelationprotected final AbstractRStarTree<?,?> tree
protected final SpatialPrimitiveDoubleDistanceFunction<? super O extends SpatialComparable> distanceFunction
public DoubleDistanceRStarTreeRangeQuery(AbstractRStarTree<?,?> tree, DistanceQuery<O,DoubleDistance> distanceQuery, SpatialPrimitiveDoubleDistanceFunction<? super O> distanceFunction)
tree - Index to usedistanceQuery - Distance query to usedistanceFunction - Distance functionprotected DoubleDistanceDBIDList doRangeQuery(O object, double epsilon)
object - Query objectepsilon - Query rangepublic DistanceDBIDResult<DoubleDistance> getRangeForObject(O obj, DoubleDistance range)
RangeQuerygetRangeForObject in interface RangeQuery<O extends SpatialComparable,DoubleDistance>getRangeForObject in class AbstractDistanceRangeQuery<O extends SpatialComparable,DoubleDistance>obj - Query objectrange - Query rangepublic DistanceDBIDResult<DoubleDistance> getRangeForDBID(DBIDRef id, DoubleDistance range)
RangeQuerygetRangeForDBID in interface RangeQuery<O extends SpatialComparable,DoubleDistance>getRangeForDBID in class AbstractDistanceRangeQuery<O extends SpatialComparable,DoubleDistance>id - query object IDrange - Query range