Mobios v0.91

mobios.index
Class RangeQuery

java.lang.Object
  extended by mobios.index.RangeQuery
All Implemented Interfaces:
Query

public class RangeQuery
extends Object
implements Query

A range query. Given (q,r), the results should be all database points x such that d(x,q) <= r

Version:
2006.05.09
Author:
Rui Mao, Willard

Constructor Summary
RangeQuery(IndexObject center, double radius)
          Initializes the range query object
RangeQuery(IndexObject center, double radius, int listSize)
           
 
Method Summary
 int getMaxDistanceListSize()
           
 IndexObject getQueryObject()
          Return a reference to the query object
 double getRadius()
          Returns the search radius of the proximity query.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RangeQuery

public RangeQuery(IndexObject center,
                  double radius)
Initializes the range query object

Parameters:
center - the Object that serves as the query object
radius - the search radius of the range query.

RangeQuery

public RangeQuery(IndexObject center,
                  double radius,
                  int listSize)
Method Detail

getQueryObject

public IndexObject getQueryObject()
Return a reference to the query object

Specified by:
getQueryObject in interface Query
Returns:
a reference to the query object

getRadius

public final double getRadius()
Returns the search radius of the proximity query.


getMaxDistanceListSize

public int getMaxDistanceListSize()

Mobios v0.91

(C) 2002 - 2006 The MoBIoS Group