O
- Database object typeD
- Distance typepublic class LinearScanRKNNQuery<O,D extends Distance<D>> extends AbstractRKNNQuery<O,D> implements LinearScanQuery
Modifier and Type | Field and Description |
---|---|
protected KNNQuery<O,D> |
knnQuery
KNN query we use.
|
distanceQuery
relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
LinearScanRKNNQuery(DistanceQuery<O,D> distanceQuery,
KNNQuery<O,D> knnQuery,
Integer maxk)
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
public List<DistanceResultPair<D>> getRKNNForObject(O obj, int k)
RKNNQuery
public 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