de.lmu.ifi.dbs.elki.database.query.range
Class AbstractDistanceRangeQuery<O,D extends Distance<D>>
java.lang.Object
de.lmu.ifi.dbs.elki.database.query.AbstractDataBasedQuery<O>
de.lmu.ifi.dbs.elki.database.query.range.AbstractDistanceRangeQuery<O,D>
- Type Parameters:
O
- Database object typeD
- Distance type
- All Implemented Interfaces:
- DatabaseQuery, RangeQuery<O,D>
- Direct Known Subclasses:
- DoubleDistanceRStarTreeRangeQuery, GenericRStarTreeRangeQuery, LinearScanRangeQuery, MetricalIndexRangeQuery
public abstract class AbstractDistanceRangeQuery<O,D extends Distance<D>>
- extends AbstractDataBasedQuery<O>
- implements RangeQuery<O,D>
Abstract base class for range queries that use a distance query in their
instance
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
distanceQuery
protected DistanceQuery<O,D extends Distance<D>> distanceQuery
- Hold the distance function to be used.
AbstractDistanceRangeQuery
public AbstractDistanceRangeQuery(DistanceQuery<O,D> distanceQuery)
- Constructor.
- Parameters:
distanceQuery
- Distance query
getRangeForDBID
public abstract List<DistanceResultPair<D>> getRangeForDBID(DBID id,
D 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,D extends Distance<D>>
- Parameters:
id
- query object IDrange
- Query range
- Returns:
- neighbors
getRangeForObject
public abstract List<DistanceResultPair<D>> getRangeForObject(O obj,
D 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,D extends Distance<D>>
- Parameters:
obj
- Query objectrange
- Query range
- Returns:
- neighbors
getRangeForBulkDBIDs
public List<List<DistanceResultPair<D>>> getRangeForBulkDBIDs(ArrayDBIDs ids,
D range)
- Description copied from interface:
RangeQuery
- Bulk query method
- Specified by:
getRangeForBulkDBIDs
in interface RangeQuery<O,D extends Distance<D>>
- Parameters:
ids
- query object IDsrange
- Query range
- Returns:
- neighbors
getDistanceFactory
public D getDistanceFactory()
- Description copied from interface:
RangeQuery
- Get the distance data type of the function.
- Specified by:
getDistanceFactory
in interface RangeQuery<O,D extends Distance<D>>