de.lmu.ifi.dbs.elki.index
Interface KNNIndex<O>

Type Parameters:
O - Object type
All Superinterfaces:
Index, Result
All Known Implementing Classes:
AbstractMaterializeKNNPreprocessor, DeLiCluTreeIndex, MaterializeKNNAndRKNNPreprocessor, MaterializeKNNPreprocessor, MetricalIndexApproximationMaterializeKNNPreprocessor, MkAppTreeIndex, MkCoPTreeIndex, MkMaxTreeIndex, MkTabTreeIndex, MTreeIndex, PartitionApproximationMaterializeKNNPreprocessor, RStarTreeIndex, SpatialApproximationMaterializeKNNPreprocessor

public interface KNNIndex<O>
extends Index

Index with support for kNN queries.


Method Summary
<D extends Distance<D>>
KNNQuery<O,D>
getKNNQuery(DistanceQuery<O,D> distanceQuery, Object... hints)
          Get a KNN query object for the given distance query and k.
 
Methods inherited from interface de.lmu.ifi.dbs.elki.index.Index
delete, deleteAll, getPageFileStatistics, insert, insertAll
 
Methods inherited from interface de.lmu.ifi.dbs.elki.result.Result
getLongName, getShortName
 

Method Detail

getKNNQuery

<D extends Distance<D>> KNNQuery<O,D> getKNNQuery(DistanceQuery<O,D> distanceQuery,
                                                  Object... hints)
Get a KNN query object for the given distance query and k. This function MAY return null, when the given distance is not supported!

Type Parameters:
D - Distance type
Parameters:
distanceQuery - Distance query
hints - Hints for the optimizer
Returns:
KNN Query object or null

Release 0.4.0 (2011-09-20_1324)