O
- Object typepublic class MetricalIndexRangeQuery<O> extends AbstractDistanceRangeQuery<O>
Modifier and Type | Field and Description |
---|---|
protected AbstractMTree<O,?,?,?> |
index
The index to use
|
distanceQuery, relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
MetricalIndexRangeQuery(AbstractMTree<O,?,?,?> index,
DistanceQuery<O> distanceQuery)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
doRangeQuery(DBID o_p,
AbstractMTreeNode<O,?,?> node,
O q,
double r_q,
ModifiableDoubleDBIDList result)
Performs a range query on the specified subtree.
|
DoubleDBIDList |
getRangeForObject(O obj,
double range)
Get the nearest neighbors for a particular object in a given query range
|
getRangeForDBID
protected final AbstractMTree<O,?,?,?> index
public MetricalIndexRangeQuery(AbstractMTree<O,?,?,?> index, DistanceQuery<O> distanceQuery)
index
- Index to usedistanceQuery
- Distance query usedprivate void doRangeQuery(DBID o_p, AbstractMTreeNode<O,?,?> node, O q, double r_q, ModifiableDoubleDBIDList result)
o_p
- the routing object of the specified nodenode
- the root of the subtree to be traversedq
- the query objectr_q
- the query rangeresult
- the list holding the query resultspublic DoubleDBIDList getRangeForObject(O obj, double range)
RangeQuery
getRangeForObject
in interface RangeQuery<O>
getRangeForObject
in class AbstractDistanceRangeQuery<O>
obj
- Query objectrange
- Query rangeCopyright © 2014 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.