|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(java.lang.String id,
DBQuadtree<T> qt,
java.lang.String indexTable,
JDBCConnection jdbc,
int level,
DBQuadtree.SupportedVersions version)
A constructor which reads the envelope from the database. |
|
DBNode(java.lang.String id,
Envelope env,
DBQuadtree<T> qt,
java.lang.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()
|
java.lang.String |
getId()
|
boolean |
insert(T itemKey,
Envelope itemEnv)
inserts a new item into the quadtree |
java.util.List<T> |
query(Envelope searchEnv,
java.util.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(java.lang.String id, Envelope env, DBQuadtree<T> qt, java.lang.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(java.lang.String id, DBQuadtree<T> qt, java.lang.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
IndexException
public 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
java.lang.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 java.util.List<T> query(Envelope searchEnv, java.util.List<T> visitor, int currentLevel) throws IndexException
Node
query
in interface Node<T>
IndexException
public java.lang.String getId()
getId
in interface Node<T>
public Envelope getEnvelope()
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
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