public class MkTreeRKNNQuery<O,D extends Distance<D>> extends AbstractRKNNQuery<O,D>
Modifier and Type | Field and Description |
---|---|
protected AbstractMkTree<O,D,?,?> |
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 |
---|
MkTreeRKNNQuery(AbstractMkTree<O,D,?,?> index,
DistanceQuery<O,D> distanceQuery)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<List<DistanceResultPair<D>>> |
getRKNNForBulkDBIDs(ArrayDBIDs ids,
int k)
Bulk query method for reverse k nearest neighbors for ids.
|
List<DistanceResultPair<D>> |
getRKNNForDBID(DBID id,
int k)
Get the reverse k nearest neighbors for a particular id.
|
List<DistanceResultPair<D>> |
getRKNNForObject(O obj,
int k)
Get the reverse k nearest neighbors for a particular object.
|
getDistanceFactory
getRelation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRelation
protected final AbstractMkTree<O,D extends Distance<D>,?,?> index
public MkTreeRKNNQuery(AbstractMkTree<O,D,?,?> index, DistanceQuery<O,D> distanceQuery)
index
- Index to usedistanceQuery
- Distance query usedpublic List<DistanceResultPair<D>> getRKNNForObject(O obj, int k)
RKNNQuery
obj
- query object instancek
- number of neighbors requestedpublic List<DistanceResultPair<D>> getRKNNForDBID(DBID id, int k)
RKNNQuery
getRKNNForDBID
in interface RKNNQuery<O,D extends Distance<D>>
getRKNNForDBID
in class AbstractRKNNQuery<O,D extends Distance<D>>
id
- query object IDk
- number of neighbors requestedpublic List<List<DistanceResultPair<D>>> getRKNNForBulkDBIDs(ArrayDBIDs ids, int k)
RKNNQuery
ids
- query object IDsk
- number of neighbors requested