deegree 2.1 (2007/11/08 09:57 build-328-official)

org.deegree.io.quadtree
Class DBNode

java.lang.Object
  extended by org.deegree.io.quadtree.DBNode
All Implemented Interfaces:
Node

 class DBNode
extends Object
implements Node

Represents a node of a DBQuadtree. Nodes contain items which have a spatial extent corresponding to the node's position in the quadtree.

Since:
2.0
Version:
$Revision: 7845 $, 1.0. $Revision: 7845 $, $Date: 2007-07-25 09:45:35 +0200 (Mi, 25 Jul 2007) $
Author:
Andreas Poth, last edited by: $Author: apoth $

Constructor Summary
DBNode(String id, Envelope env, DBQuadtree qt, String indexName, JDBCConnection jdbc, int level)
           
 
Method Summary
(package private)  void create()
          creates a new node with current ID and envelope
 void deleteItem(Object item)
          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 (
(package private)  Envelope getEnvelope()
           
 String getId()
           
 void insert(Object item, Envelope itemEnv)
          inserts a new item into the quadtree
 List<Object> query(Envelope searchEnv, List<Object> visitor, int level)
          returns a List containing all items whose envelope intersects with the passed one
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBNode

public DBNode(String id,
              Envelope env,
              DBQuadtree qt,
              String indexName,
              JDBCConnection jdbc,
              int level)
       throws IndexException
Parameters:
id -
jdbc -
Throws:
IndexException
Method Detail

getId

public String getId()
Specified by:
getId in interface Node
Returns:

getEnvelope

Envelope getEnvelope()

insert

public void insert(Object item,
                   Envelope itemEnv)
            throws IndexException
Description copied from interface: Node
inserts a new item into the quadtree

Specified by:
insert in interface Node
Throws:
IndexException

query

public List<Object> query(Envelope searchEnv,
                          List<Object> visitor,
                          int level)
                   throws IndexException
Description copied from interface: Node
returns a List containing all items whose envelope intersects with the passed one

Specified by:
query in interface Node
Returns:
a List containing all items whose envelope intersects with the passed one
Throws:
IndexException

deleteItem

public void deleteItem(Object item)
Description copied from interface: Node
deletes a specific item from the tree (not the item itself will be deleted, just its reference will be)

Specified by:
deleteItem in interface Node

deleteRange

public void deleteRange(Envelope envelope)
Description copied from interface: Node
deletes all references of items whose envelope intersects with the passed one (

Specified by:
deleteRange in interface Node
See Also:
)

create

void create()
      throws IndexException
creates a new node with current ID and envelope

Throws:
IndexException

deegree 2.1 (2007/11/08 09:57 build-328-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net