public abstract class AbstractRKNNQuery<O,D extends Distance<D>> extends AbstractDataBasedQuery<O> implements RKNNQuery<O,D>
Modifier and Type | Field and Description |
---|---|
protected DistanceQuery<O,D> |
distanceQuery
Hold the distance function to be used.
|
relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
AbstractRKNNQuery(DistanceQuery<O,D> distanceQuery)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
D |
getDistanceFactory()
Get the distance data type of the function.
|
abstract List<DistanceResultPair<D>> |
getRKNNForDBID(DBID id,
int k)
Get the reverse k nearest neighbors for a particular id.
|
getRelation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRelation, getRKNNForBulkDBIDs, getRKNNForObject
protected final DistanceQuery<O,D extends Distance<D>> distanceQuery
public AbstractRKNNQuery(DistanceQuery<O,D> distanceQuery)
distanceQuery
- distance querypublic abstract List<DistanceResultPair<D>> getRKNNForDBID(DBID id, int k)
RKNNQuery