O
- Database object typepublic class DoubleOptimizedRangeQuery<O> extends LinearScanRangeQuery<O,DoubleDistance> implements LinearScanQuery
Modifier and Type | Field and Description |
---|---|
(package private) PrimitiveDoubleDistanceFunction<O> |
rawdist
Raw distance function.
|
distanceQuery
relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
DoubleOptimizedRangeQuery(DistanceQuery<O,DoubleDistance> distanceQuery)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DistanceDBIDList<DoubleDistance> |
getRangeForDBID(DBIDRef id,
DoubleDistance range)
Get the nearest neighbors for a particular id in a given query range
|
DistanceDBIDList<DoubleDistance> |
getRangeForObject(O obj,
DoubleDistance range)
Get the nearest neighbors for a particular object in a given query range
|
getRelation
PrimitiveDoubleDistanceFunction<O> rawdist
public DoubleOptimizedRangeQuery(DistanceQuery<O,DoubleDistance> distanceQuery)
distanceQuery
- Distance function to usepublic DistanceDBIDList<DoubleDistance> getRangeForDBID(DBIDRef id, DoubleDistance range)
RangeQuery
getRangeForDBID
in interface RangeQuery<O,DoubleDistance>
getRangeForDBID
in class LinearScanRangeQuery<O,DoubleDistance>
id
- query object IDrange
- Query rangepublic DistanceDBIDList<DoubleDistance> getRangeForObject(O obj, DoubleDistance range)
RangeQuery
getRangeForObject
in interface RangeQuery<O,DoubleDistance>
getRangeForObject
in class LinearScanRangeQuery<O,DoubleDistance>
obj
- Query objectrange
- Query range