D
- Distance typeclass ProjectedIndex.ProjectedRangeQuery<D extends Distance<D>> extends AbstractDistanceRangeQuery<O,D>
Modifier and Type | Field and Description |
---|---|
(package private) RangeQuery<I,D> |
inner
Inner range query.
|
distanceQuery
relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
ProjectedIndex.ProjectedRangeQuery(DistanceQuery<O,D> distanceQuery,
RangeQuery<I,D> inner)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DistanceDBIDList<D> |
getRangeForDBID(DBIDRef id,
D range)
Get the nearest neighbors for a particular id in a given query range
|
DistanceDBIDList<D> |
getRangeForObject(O obj,
D range)
Get the nearest neighbors for a particular object in a given query range
|
getDistanceFactory
getRelation
RangeQuery<I,D extends Distance<D>> inner
public ProjectedIndex.ProjectedRangeQuery(DistanceQuery<O,D> distanceQuery, RangeQuery<I,D> inner)
inner
- Inner range query.public DistanceDBIDList<D> getRangeForDBID(DBIDRef id, D range)
RangeQuery
getRangeForDBID
in interface RangeQuery<O,D extends Distance<D>>
getRangeForDBID
in class AbstractDistanceRangeQuery<O,D extends Distance<D>>
id
- query object IDrange
- Query rangepublic DistanceDBIDList<D> getRangeForObject(O obj, D range)
RangeQuery
getRangeForObject
in interface RangeQuery<O,D extends Distance<D>>
getRangeForObject
in class AbstractDistanceRangeQuery<O,D extends Distance<D>>
obj
- Query objectrange
- Query range