
O - Database object typeD - Distance typepublic abstract class AbstractDistanceRangeQuery<O,D extends Distance<D>> extends AbstractDataBasedQuery<O> implements RangeQuery<O,D>
| Modifier and Type | Field and Description |
|---|---|
protected DistanceQuery<O,D> |
distanceQuery
Hold the distance function to be used.
|
relationHINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE| Constructor and Description |
|---|
AbstractDistanceRangeQuery(DistanceQuery<O,D> distanceQuery)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
D |
getDistanceFactory()
Get the distance data type of the function.
|
List<List<DistanceResultPair<D>>> |
getRangeForBulkDBIDs(ArrayDBIDs ids,
D range)
Bulk query method
|
abstract List<DistanceResultPair<D>> |
getRangeForDBID(DBID id,
D range)
Get the nearest neighbors for a particular id in a given query range
|
abstract List<DistanceResultPair<D>> |
getRangeForObject(O obj,
D range)
Get the nearest neighbors for a particular object in a given query range
|
getRelationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRelationprotected DistanceQuery<O,D extends Distance<D>> distanceQuery
public AbstractDistanceRangeQuery(DistanceQuery<O,D> distanceQuery)
distanceQuery - Distance querypublic abstract List<DistanceResultPair<D>> getRangeForDBID(DBID id, D range)
RangeQuerygetRangeForDBID in interface RangeQuery<O,D extends Distance<D>>id - query object IDrange - Query rangepublic abstract List<DistanceResultPair<D>> getRangeForObject(O obj, D range)
RangeQuerygetRangeForObject in interface RangeQuery<O,D extends Distance<D>>obj - Query objectrange - Query rangepublic List<List<DistanceResultPair<D>>> getRangeForBulkDBIDs(ArrayDBIDs ids, D range)
RangeQuerygetRangeForBulkDBIDs in interface RangeQuery<O,D extends Distance<D>>ids - query object IDsrange - Query rangepublic D getDistanceFactory()
RangeQuerygetDistanceFactory in interface RangeQuery<O,D extends Distance<D>>