de.lmu.ifi.dbs.elki.database.query.range
Class LinearScanRawDoubleDistanceRangeQuery<O>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.database.query.AbstractDataBasedQuery<O>
      extended by de.lmu.ifi.dbs.elki.database.query.range.AbstractDistanceRangeQuery<O,D>
          extended by de.lmu.ifi.dbs.elki.database.query.range.LinearScanRangeQuery<O,DoubleDistance>
              extended by de.lmu.ifi.dbs.elki.database.query.range.LinearScanRawDoubleDistanceRangeQuery<O>
Type Parameters:
O - Database object type
All Implemented Interfaces:
DatabaseQuery, LinearScanQuery, RangeQuery<O,DoubleDistance>

public class LinearScanRawDoubleDistanceRangeQuery<O>
extends LinearScanRangeQuery<O,DoubleDistance>
implements LinearScanQuery

Default linear scan range query class.


Field Summary
 
Fields inherited from class de.lmu.ifi.dbs.elki.database.query.range.AbstractDistanceRangeQuery
distanceQuery
 
Fields inherited from class de.lmu.ifi.dbs.elki.database.query.AbstractDataBasedQuery
relation
 
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
 
Constructor Summary
LinearScanRawDoubleDistanceRangeQuery(DistanceQuery<O,DoubleDistance> distanceQuery)
          Constructor.
 
Method Summary
 List<DistanceResultPair<DoubleDistance>> getRangeForDBID(DBID id, DoubleDistance range)
          Get the nearest neighbors for a particular id in a given query range
 List<DistanceResultPair<DoubleDistance>> getRangeForObject(O obj, DoubleDistance range)
          Get the nearest neighbors for a particular object in a given query range
 
Methods inherited from class de.lmu.ifi.dbs.elki.database.query.range.AbstractDistanceRangeQuery
getDistanceFactory, getRangeForBulkDBIDs
 
Methods inherited from class de.lmu.ifi.dbs.elki.database.query.AbstractDataBasedQuery
getRelation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.lmu.ifi.dbs.elki.database.query.range.RangeQuery
getRelation
 

Constructor Detail

LinearScanRawDoubleDistanceRangeQuery

public LinearScanRawDoubleDistanceRangeQuery(DistanceQuery<O,DoubleDistance> distanceQuery)
Constructor.

Parameters:
distanceQuery - Distance function to use
Method Detail

getRangeForDBID

public List<DistanceResultPair<DoubleDistance>> getRangeForDBID(DBID id,
                                                                DoubleDistance range)
Description copied from interface: RangeQuery
Get the nearest neighbors for a particular id in a given query range

Specified by:
getRangeForDBID in interface RangeQuery<O,DoubleDistance>
Overrides:
getRangeForDBID in class LinearScanRangeQuery<O,DoubleDistance>
Parameters:
id - query object ID
range - Query range
Returns:
neighbors

getRangeForObject

public List<DistanceResultPair<DoubleDistance>> getRangeForObject(O obj,
                                                                  DoubleDistance range)
Description copied from interface: RangeQuery
Get the nearest neighbors for a particular object in a given query range

Specified by:
getRangeForObject in interface RangeQuery<O,DoubleDistance>
Overrides:
getRangeForObject in class LinearScanRangeQuery<O,DoubleDistance>
Parameters:
obj - Query object
range - Query range
Returns:
neighbors

Release 0.4.0 (2011-09-20_1324)