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<GenericDistanceDBIDList<D>> |
getRKNNForBulkDBIDs(ArrayDBIDs ids,
int k)
Bulk query method for reverse k nearest neighbors for ids.
|
DistanceDBIDList<D> |
getRKNNForDBID(DBIDRef id,
int k)
Get the reverse k nearest neighbors for a particular id.
|
DistanceDBIDList<D> |
getRKNNForObject(O obj,
int k)
Get the reverse k nearest neighbors for a particular object.
|
getRelation
public DistanceDBIDList<D> getRKNNForObject(O obj, int k)
RKNNQuery
public DistanceDBIDList<D> getRKNNForDBID(DBIDRef 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<GenericDistanceDBIDList<D>> getRKNNForBulkDBIDs(ArrayDBIDs ids, int k)
RKNNQuery