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.
|
void |
getRangeForObject(O obj,
double range,
ModifiableDoubleDBIDList result)
Get the neighbors for a particular object in a given query range
|
getRangeForDBID, getRangeForDBID, getRangeForObject
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 void getRangeForObject(O obj, double range, ModifiableDoubleDBIDList result)
RangeQuery
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.