de.lmu.ifi.dbs.elki.database.query.range
Interface RangeQuery<O,D extends Distance<D>>

Type Parameters:
O - Object type
D - Distance type
All Superinterfaces:
DatabaseQuery
All Known Implementing Classes:
AbstractDistanceRangeQuery, DoubleDistanceRStarTreeRangeQuery, GenericRStarTreeRangeQuery, LinearScanPrimitiveDistanceRangeQuery, LinearScanRangeQuery, LinearScanRawDoubleDistanceRangeQuery, MetricalIndexRangeQuery

public interface RangeQuery<O,D extends Distance<D>>
extends DatabaseQuery

The interface for range queries


Field Summary
 
Fields inherited from interface de.lmu.ifi.dbs.elki.database.query.DatabaseQuery
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
 
Method Summary
 D getDistanceFactory()
          Get the distance data type of the function.
 List<List<DistanceResultPair<D>>> getRangeForBulkDBIDs(ArrayDBIDs ids, D range)
          Bulk query method
 List<DistanceResultPair<D>> getRangeForDBID(DBID id, D range)
          Get the nearest neighbors for a particular id in a given query range
 List<DistanceResultPair<D>> getRangeForObject(O obj, D range)
          Get the nearest neighbors for a particular object in a given query range
 Relation<? extends O> getRelation()
          Access the underlying data query.
 

Method Detail

getRangeForDBID

List<DistanceResultPair<D>> getRangeForDBID(DBID id,
                                            D range)
Get the nearest neighbors for a particular id in a given query range

Parameters:
id - query object ID
range - Query range
Returns:
neighbors

getRangeForBulkDBIDs

List<List<DistanceResultPair<D>>> getRangeForBulkDBIDs(ArrayDBIDs ids,
                                                       D range)
Bulk query method

Parameters:
ids - query object IDs
range - Query range
Returns:
neighbors

getRangeForObject

List<DistanceResultPair<D>> getRangeForObject(O obj,
                                              D range)
Get the nearest neighbors for a particular object in a given query range

Parameters:
obj - Query object
range - Query range
Returns:
neighbors

getDistanceFactory

D getDistanceFactory()
Get the distance data type of the function.


getRelation

Relation<? extends O> getRelation()
Access the underlying data query.

Returns:
data query in use

Release 0.4.0 (2011-09-20_1324)