|
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.DBQuadtree<T>
T
- the datatype to be used as idpublic class DBQuadtree<T>
Nested Class Summary | |
---|---|
static class |
DBQuadtree.SupportedVersions
The SupportedVersions supported by this quatree |
Constructor Summary | |
---|---|
DBQuadtree(int id,
java.lang.String indexName,
JDBCConnection jdbc)
initializes a quadtree already existing in a database. |
|
DBQuadtree(int id,
java.lang.String indexName,
JDBCConnection jdbc,
double accuracyX,
double accuracyY,
java.lang.String version)
initializes a quadtree already existing in a database |
|
DBQuadtree(int id,
java.lang.String indexName,
JDBCConnection jdbc,
java.lang.String version)
Creates a Database with given version. |
Method Summary | |
---|---|
(package private) void |
addToCache(DBNode<T> node)
|
void |
deleteItem(T item)
deletes an item from a quadtree |
void |
deleteRange(Envelope envelope)
deletes all references of items whose envelope intersects with the passed one ( |
int |
getDepth()
|
(package private) DBNode<T> |
getFromCache(java.lang.String id)
|
Envelope |
getRootBoundingBox()
returns the bounding box covered by the quadtrees root node |
void |
insert(T item,
Envelope envelope)
inserts a new item into a quadtree |
void |
insert(T item,
Point point)
inserts a new item into the quadtree |
java.util.List<T> |
query(Envelope envelope)
returns a List containing all items whose envelope intersects with the passed one |
boolean |
releaseConnection()
|
(package private) DBNode<T> |
removeFromCache(DBNode<T> node)
|
void |
update(T item,
Envelope newBBox)
updates the envelope of an item |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DBQuadtree(int id, java.lang.String indexName, JDBCConnection jdbc, java.lang.String version) throws IndexException
id
- of the table which contains the features.indexName
- this name will be used to create the table that stores the nodes of a specific
quadtreejdbc
- description of database connectionversion
- of the quadtree, which is usefull for the determination of the layout, if null
then the version is assumed to be unknown and the old layout is used.
IndexException
public DBQuadtree(int id, java.lang.String indexName, JDBCConnection jdbc) throws IndexException
id
- of the table which contains the features.indexName
- this name will be used to create the table that stores the nodes of a specific
quadtreejdbc
- description of database connection
IndexException
- if the quadtree node with 'id' could not be read from the database.public DBQuadtree(int id, java.lang.String indexName, JDBCConnection jdbc, double accuracyX, double accuracyY, java.lang.String version) throws IndexException
id
- of the table which contains the features.indexName
- this name will be used to create the table that stores the nodes of a specific
quadtreejdbc
- description of database connectionaccuracyX
- accuracyY
- version
- of the quadtree, which is usefull for the determination of the layout, if null
then the version is assumed to be "1.0.0" (the first version) and the old layout
is used.
IndexException
- if the quadtree node with 'id' could not be read from the database.Method Detail |
---|
DBNode<T> getFromCache(java.lang.String id)
id
-
void addToCache(DBNode<T> node)
node
- DBNode<T> removeFromCache(DBNode<T> node)
node
- public void insert(T item, Envelope envelope) throws IndexException
insert
in interface Quadtree<T>
item
- envelope
-
IndexException
public void insert(T item, Point point) throws IndexException
Quadtree
insert
in interface Quadtree<T>
item
- point
-
IndexException
public java.util.List<T> query(Envelope envelope) throws IndexException
Quadtree
query
in interface Quadtree<T>
envelope
-
IndexException
public void deleteItem(T item) throws IndexException
deleteItem
in interface Quadtree<T>
item
-
IndexException
- if the rootnode cannot be loaded, or the given item does not exist.public void update(T item, Envelope newBBox) throws IndexException
update
in interface Quadtree<T>
item
- newBBox
-
IndexException
- if the rootnode cannot be loaded, or the given item does not exist.public void deleteRange(Envelope envelope)
Quadtree
deleteRange
in interface Quadtree<T>
)
public int getDepth()
getDepth
in interface Quadtree<T>
public boolean releaseConnection()
public Envelope getRootBoundingBox() throws IndexException
Quadtree
getRootBoundingBox
in interface Quadtree<T>
IndexException
|
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