O
- Database object typepublic class LinearScanRawDoubleDistanceRangeQuery<O> extends LinearScanRangeQuery<O,DoubleDistance> implements LinearScanQuery
distanceQuery
relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
LinearScanRawDoubleDistanceRangeQuery(DistanceQuery<O,DoubleDistance> distanceQuery)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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
|
getDistanceFactory, getRangeForBulkDBIDs
getRelation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRelation
public LinearScanRawDoubleDistanceRangeQuery(DistanceQuery<O,DoubleDistance> distanceQuery)
distanceQuery
- Distance function to usepublic List<DistanceResultPair<DoubleDistance>> getRangeForDBID(DBID id, DoubleDistance range)
RangeQuery
getRangeForDBID
in interface RangeQuery<O,DoubleDistance>
getRangeForDBID
in class LinearScanRangeQuery<O,DoubleDistance>
id
- query object IDrange
- Query rangepublic List<DistanceResultPair<DoubleDistance>> getRangeForObject(O obj, DoubleDistance range)
RangeQuery
getRangeForObject
in interface RangeQuery<O,DoubleDistance>
getRangeForObject
in class LinearScanRangeQuery<O,DoubleDistance>
obj
- Query objectrange
- Query range