D
- Distance typeprotected class InMemoryLSHIndex.Instance.LSHKNNQuery<D extends Distance<D>> extends AbstractRefiningIndex.AbstractKNNQuery<D>
distanceQuery
relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
InMemoryLSHIndex.Instance.LSHKNNQuery(DistanceQuery<V,D> distanceQuery)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
KNNList<D> |
getKNNForObject(V obj,
int k)
Get the k nearest neighbors for a particular id.
|
incRefinements, refine
getKNNForBulkDBIDs, getKNNForDBID
getRelation
public InMemoryLSHIndex.Instance.LSHKNNQuery(DistanceQuery<V,D> distanceQuery)
distanceQuery
- public KNNList<D> getKNNForObject(V obj, int k)
KNNQuery
getKNNForObject
in interface KNNQuery<V,D extends Distance<D>>
getKNNForObject
in class AbstractDistanceKNNQuery<V,D extends Distance<D>>
obj
- Query objectk
- Number of neighbors requested