index
Class Query

java.lang.Object
  |
  +--index.Query
Direct Known Subclasses:
NearestNeighborQuery, RegionQuery

public class Query
extends java.lang.Object

Basic class for queries


Field Summary
static int ALLLAYERS
          all layers.
static int ALLSCALES
          all scales.
static int QUERY
          normal query.
protected  int queryNum
          number of queries.
static int REMOVEALL
          remove all.
static int REMOVEEXACT
          remove exact.
protected  int resultNum
          number of results.
protected  CPUTimer timer
          query time.
static int UPDATEALL
          update all.
static int UPDATEEXACT
          update exact.
 
Constructor Summary
Query()
           
 
Method Summary
 int getQueryNum()
          Returns the number of queries.
 long getQueryTime()
          Returns the query time.
 int getResultNum()
          Returns the number of results.
 void resetCounters()
          Resets the counters and timers.
 void setCounters(int queryNum, int resultNum, long time)
          Sets the counters and timers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALLLAYERS

public static final int ALLLAYERS
all layers.

See Also:
Constant Field Values

ALLSCALES

public static final int ALLSCALES
all scales.

See Also:
Constant Field Values

QUERY

public static final int QUERY
normal query.

See Also:
Constant Field Values

REMOVEEXACT

public static final int REMOVEEXACT
remove exact.

See Also:
Constant Field Values

REMOVEALL

public static final int REMOVEALL
remove all.

See Also:
Constant Field Values

UPDATEEXACT

public static final int UPDATEEXACT
update exact.

See Also:
Constant Field Values

UPDATEALL

public static final int UPDATEALL
update all.

See Also:
Constant Field Values

queryNum

protected int queryNum
number of queries.


resultNum

protected int resultNum
number of results.


timer

protected CPUTimer timer
query time.

Constructor Detail

Query

public Query()
Method Detail

getQueryNum

public int getQueryNum()
Returns the number of queries.

Returns:
number of queries

getQueryTime

public long getQueryTime()
Returns the query time.

Returns:
query time

getResultNum

public int getResultNum()
Returns the number of results.

Returns:
number of results

resetCounters

public void resetCounters()
Resets the counters and timers.


setCounters

public void setCounters(int queryNum,
                        int resultNum,
                        long time)
Sets the counters and timers.

Parameters:
queryNum - number of queries
resultNum - numer of results
time - query time in msec