@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 RStarTreeRangeQuery<O extends SpatialComparable> extends Object implements RangeQuery<O>
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> |
distanceFunction
Spatial primitive distance function
|
protected Relation<? extends O> |
relation
Relation we query.
|
protected AbstractRStarTree<?,?,?> |
tree
The index to use
|
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
RStarTreeRangeQuery(AbstractRStarTree<?,?,?> tree,
Relation<? extends O> relation,
SpatialPrimitiveDistanceFunction<? super O> distanceFunction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DoubleDBIDList |
getRangeForDBID(DBIDRef id,
double range)
Get the neighbors for a particular id in a given query range
|
void |
getRangeForDBID(DBIDRef id,
double range,
ModifiableDoubleDBIDList result)
Get the neighbors for a particular object in a given query range
|
DoubleDBIDList |
getRangeForObject(O obj,
double range)
Get the neighbors for a particular object in a given query range
|
void |
getRangeForObject(O obj,
double range,
ModifiableDoubleDBIDList result)
Get the neighbors for a particular object in a given query range
|
protected final AbstractRStarTree<?,?,?> tree
protected final SpatialPrimitiveDistanceFunction<? super O extends SpatialComparable> distanceFunction
protected Relation<? extends O extends SpatialComparable> relation
public RStarTreeRangeQuery(AbstractRStarTree<?,?,?> tree, Relation<? extends O> relation, SpatialPrimitiveDistanceFunction<? super O> distanceFunction)
tree
- Index to userelation
- Data relation to querydistanceFunction
- Distance functionpublic DoubleDBIDList getRangeForDBID(DBIDRef id, double range)
RangeQuery
getRangeForDBID
in interface RangeQuery<O extends SpatialComparable>
id
- query object IDrange
- Query rangepublic DoubleDBIDList getRangeForObject(O obj, double range)
RangeQuery
getRangeForObject
in interface RangeQuery<O extends SpatialComparable>
obj
- Query objectrange
- Query rangepublic void getRangeForDBID(DBIDRef id, double range, ModifiableDoubleDBIDList result)
RangeQuery
getRangeForDBID
in interface RangeQuery<O extends SpatialComparable>
id
- query object IDrange
- Query rangeresult
- Neighbors output setpublic void getRangeForObject(O obj, double range, ModifiableDoubleDBIDList result)
RangeQuery
getRangeForObject
in interface RangeQuery<O extends SpatialComparable>
obj
- Query objectrange
- Query rangeresult
- Neighbors output setCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.