
public class DoubleDistanceMetricalIndexRangeQuery<O> extends AbstractDistanceRangeQuery<O,DoubleDistance>
| Modifier and Type | Field and Description | 
|---|---|
| protected PrimitiveDoubleDistanceFunction<? super O> | distfDistance function | 
| protected AbstractMTree<O,DoubleDistance,?,?> | indexThe index to use | 
distanceQueryrelationHINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE| Constructor and Description | 
|---|
| DoubleDistanceMetricalIndexRangeQuery(AbstractMTree<O,DoubleDistance,?,?> index,
                                     DistanceQuery<O,DoubleDistance> distanceQuery,
                                     PrimitiveDoubleDistanceFunction<? super O> distf)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| private void | doRangeQuery(DBID id_p,
            AbstractMTreeNode<O,DoubleDistance,?,?> node,
            O q,
            double r_q,
            DoubleDistanceDBIDList result)Performs a range query on the specified subtree. | 
| DistanceDBIDResult<DoubleDistance> | getRangeForDBID(DBIDRef id,
               DoubleDistance range)Get the nearest neighbors for a particular id in a given query range | 
| DistanceDBIDResult<DoubleDistance> | getRangeForObject(O obj,
                 DoubleDistance range)Get the nearest neighbors for a particular object in a given query range | 
getRelationprotected final AbstractMTree<O,DoubleDistance,?,?> index
protected PrimitiveDoubleDistanceFunction<? super O> distf
public DoubleDistanceMetricalIndexRangeQuery(AbstractMTree<O,DoubleDistance,?,?> index, DistanceQuery<O,DoubleDistance> distanceQuery, PrimitiveDoubleDistanceFunction<? super O> distf)
index - Index to usedistanceQuery - Distance query useddistf - Distance functionprivate void doRangeQuery(DBID id_p, AbstractMTreeNode<O,DoubleDistance,?,?> node, O q, double r_q, DoubleDistanceDBIDList result)
id_p - the routing object of the specified nodenode - the root of the subtree to be traversedq - the query objectr_q - the query rangeresult - the list holding the query resultspublic DistanceDBIDResult<DoubleDistance> getRangeForObject(O obj, DoubleDistance range)
RangeQuerygetRangeForObject in interface RangeQuery<O,DoubleDistance>getRangeForObject in class AbstractDistanceRangeQuery<O,DoubleDistance>obj - Query objectrange - Query rangepublic DistanceDBIDResult<DoubleDistance> getRangeForDBID(DBIDRef id, DoubleDistance range)
RangeQuerygetRangeForDBID in interface RangeQuery<O,DoubleDistance>getRangeForDBID in class AbstractDistanceRangeQuery<O,DoubleDistance>id - query object IDrange - Query range