O
- Object typepublic class MTreeRangeQuery<O> extends AbstractDistanceRangeQuery<O>
Modifier and Type | Field and Description |
---|---|
protected AbstractMTree<O,?,?,?> |
index
The index to use
|
distanceQuery
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
MTreeRangeQuery(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, getRelation
protected final AbstractMTree<O,?,?,?> index
public MTreeRangeQuery(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 © 2019 ELKI Development Team. License information.