public class DoubleDistanceRStarTreeRangeQuery<O extends SpatialComparable> extends AbstractDistanceRangeQuery<O,DoubleDistance>
Modifier and Type | Field and Description |
---|---|
protected SpatialPrimitiveDoubleDistanceFunction<? super O> |
distanceFunction
Spatial primitive distance function
|
protected AbstractRStarTree<?,?> |
tree
The index to use
|
distanceQuery
relation
HINT_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 List<DistanceResultPair<DoubleDistance>> |
doRangeQuery(O object,
double epsilon)
Perform the actual query process.
|
List<DistanceResultPair<DoubleDistance>> |
getRangeForDBID(DBID id,
DoubleDistance range)
Get the nearest neighbors for a particular id in a given query range
|
List<DistanceResultPair<DoubleDistance>> |
getRangeForObject(O obj,
DoubleDistance range)
Get the nearest neighbors for a particular object in a given query range
|
getDistanceFactory, getRangeForBulkDBIDs
getRelation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRelation
protected 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 List<DistanceResultPair<DoubleDistance>> doRangeQuery(O object, double epsilon)
object
- Query objectepsilon
- Query rangepublic List<DistanceResultPair<DoubleDistance>> getRangeForObject(O obj, DoubleDistance range)
RangeQuery
getRangeForObject
in interface RangeQuery<O extends SpatialComparable,DoubleDistance>
getRangeForObject
in class AbstractDistanceRangeQuery<O extends SpatialComparable,DoubleDistance>
obj
- Query objectrange
- Query rangepublic List<DistanceResultPair<DoubleDistance>> getRangeForDBID(DBID id, DoubleDistance range)
RangeQuery
getRangeForDBID
in interface RangeQuery<O extends SpatialComparable,DoubleDistance>
getRangeForDBID
in class AbstractDistanceRangeQuery<O extends SpatialComparable,DoubleDistance>
id
- query object IDrange
- Query range