|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--index.Query
|
+--spatial.RegionQuery
A general region query for search trees
| Field Summary | |
protected int[] |
index
The current path: search indices for the different heights of the tree. |
protected static int |
MAXHEIGHT
The maximum height of the tree. |
protected SpatialSearchTreeNode[] |
node
The current path: nodes from different heights of the tree. |
protected int |
operation
The query mode. |
protected int |
pathLength
The length of the current path. |
protected SpatialQuery |
query
The current query. |
protected SpatialSearchTreeObject |
queryObj
The current query object, may be null. |
protected MBR |
rect
The current query rectangle. |
| Fields inherited from class index.Query |
ALLLAYERS, ALLSCALES, QUERY, queryNum, REMOVEALL, REMOVEEXACT, resultNum, timer, UPDATEALL, UPDATEEXACT |
| Constructor Summary | |
RegionQuery(SpatialQuery query)
Region query constructor. |
|
| Method Summary | |
SpatialSearchTreeObject |
getNextObject()
Returns the next object fulfilling the query condition. |
protected SpatialSearchTreeObject |
getNextObject(int actHeight)
Returns (or removes or moves) the next object(s) fulfilling the query condition. |
SpatialQuery |
getQuery()
Return the spatial query. |
void |
init(SpatialSearchTree tree)
Initializes a query without spatial conditions. |
void |
init(SpatialSearchTree tree,
int operation)
Initializes a query without spatial conditions. |
void |
initWithObject(SpatialSearchTree tree,
SpatialSearchTreeObject queryObj)
Initializes a new query. |
void |
initWithObject(SpatialSearchTree tree,
SpatialSearchTreeObject queryObj,
int operation)
Initializes a new query. |
void |
initWithPoint(SpatialSearchTree tree,
int[] point)
Initializes a new query. |
void |
initWithPoint(SpatialSearchTree tree,
int[] point,
int operation)
Initializes a new query. |
void |
initWithRect(SpatialSearchTree tree,
MBR window)
Initializes a new query. |
void |
initWithRect(SpatialSearchTree tree,
MBR window,
int operation)
Initializes a new query. |
void |
reset()
Resets the query. |
void |
resetLocks()
Resets all locks except of the root node. |
| Methods inherited from class index.Query |
getQueryNum, getQueryTime, getResultNum, resetCounters, setCounters |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface spatial.SpatialSearchTreeQuery |
getQueryNum, getQueryTime, getResultNum, resetCounters |
| Field Detail |
protected SpatialQuery query
protected SpatialSearchTreeObject queryObj
protected MBR rect
protected int operation
protected static final int MAXHEIGHT
protected SpatialSearchTreeNode[] node
protected int[] index
protected int pathLength
| Constructor Detail |
public RegionQuery(SpatialQuery query)
query - definition of the query| Method Detail |
public SpatialSearchTreeObject getNextObject()
getNextObject in interface SpatialSearchTreeQueryprotected SpatialSearchTreeObject getNextObject(int actHeight)
actHeight - actual height
public SpatialQuery getQuery()
public void init(SpatialSearchTree tree)
init in interface SpatialSearchTreeQuerytree - the searchtree
public void init(SpatialSearchTree tree,
int operation)
tree - the searchtreeoperation - the operation
public void initWithPoint(SpatialSearchTree tree,
int[] point)
tree - the searchtreepoint - coordinates of the query point
public void initWithPoint(SpatialSearchTree tree,
int[] point,
int operation)
tree - the searchtreepoint - coordinates of the query pointoperation - the query operation
public void initWithRect(SpatialSearchTree tree,
MBR window)
tree - the searchtreewindow - the query window
public void initWithRect(SpatialSearchTree tree,
MBR window,
int operation)
tree - the searchtreewindow - the query windowoperation - the query operation
public void initWithObject(SpatialSearchTree tree,
SpatialSearchTreeObject queryObj)
tree - the searchtreequeryObj - the query object
public void initWithObject(SpatialSearchTree tree,
SpatialSearchTreeObject queryObj,
int operation)
tree - the searchtreequeryObj - the query objectoperation - the query operationpublic void reset()
reset in interface SpatialSearchTreeQuerypublic void resetLocks()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||