| 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.io.quadtree.DBNode<T>
class DBNode<T>
Represents a node of a DBQuadtree. Nodes contain items which have a spatial extent
 corresponding to the node's position in the quadtree.
| Constructor Summary | |
|---|---|
DBNode(String id,
             DBQuadtree<T> qt,
             String indexTable,
             JDBCConnection jdbc,
             int level,
             DBQuadtree.SupportedVersions version)
A constructor which reads the envelope from the database.  | 
|
DBNode(String id,
             Envelope env,
             DBQuadtree<T> qt,
             String indexTable,
             JDBCConnection jdbc,
             int level,
             DBQuadtree.SupportedVersions version)
 | 
|
| Method Summary | |
|---|---|
 boolean | 
delete(T itemKey,
             Envelope itemEnv)
deletes a specific item from the tree (not the item itself will be deleted, just its reference will be.  | 
 void | 
deleteRange(Envelope envelope)
deletes all references of items whose envelope intersects with the passed one (  | 
 Envelope | 
getEnvelope()
 | 
 String | 
getId()
 | 
 boolean | 
insert(T itemKey,
             Envelope itemEnv)
inserts a new item into the quadtree  | 
 List<T> | 
query(Envelope searchEnv,
           List<T> visitor,
           int currentLevel)
returns a List containing all items whose envelope intersects with the passed one  | 
 boolean | 
update(T itemKey,
             Envelope newBBox)
Updates the spatial reference of the given item.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public DBNode(String id,
              Envelope env,
              DBQuadtree<T> qt,
              String indexTable,
              JDBCConnection jdbc,
              int level,
              DBQuadtree.SupportedVersions version)
       throws IndexException
id - env - qt - indexTable - jdbc - level - version - of the quadtree layout to use
IndexException - if the node with given id could not be read from the db.
public DBNode(String id,
              DBQuadtree<T> qt,
              String indexTable,
              JDBCConnection jdbc,
              int level,
              DBQuadtree.SupportedVersions version)
       throws IndexException
id - qt - indexTable - jdbc - level - version - of the quadtree layout to use.
IndexException - if the node with given id could not be read from the db.| Method Detail | 
|---|
public boolean insert(T itemKey,
                      Envelope itemEnv)
               throws IndexException
Node
insert in interface Node<T>itemKey - (or it's id) which shall be inserted into the quadtree.itemEnv - the bbox of the item
IndexExceptionpublic void deleteRange(Envelope envelope)
Node
deleteRange in interface Node<T>)
public boolean delete(T itemKey,
                      Envelope itemEnv)
               throws IndexException
Node
delete in interface Node<T>itemKey - (or it's ide) to be deleteditemEnv - bbox of the item
UnsupportedOperationException - if the version of this quadtree(node) is not 2.0.0 or higher.
IndexException
public boolean update(T itemKey,
                      Envelope newBBox)
Node
update in interface Node<T>itemKey - which spatial reference in the quadtree should be updated.newBBox - newBBox the new BBoundingbox of the item.
public List<T> query(Envelope searchEnv,
                     List<T> visitor,
                     int currentLevel)
              throws IndexException
Node
query in interface Node<T>IndexExceptionpublic String getId()
getId in interface Node<T>public Envelope getEnvelope()
  | 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
                    For more information visit: http://www.deegree.org