org.geotools.caching.spatialindex
Interface Node

All Superinterfaces:
Entry
All Known Implementing Classes:
GridNode, GridRootNode

public interface Node
extends Entry


Method Summary
 void clear()
          Clears all the data in the node.
 NodeIdentifier getChildIdentifier(int index)
           
 int getChildrenCount()
           
 int getDataCount()
           
 NodeIdentifier getIdentifier()
           
 int getLevel()
           
 boolean isIndex()
           
 boolean isLeaf()
          If the node is a leaf node (has no children)
 void setIdentifier(NodeIdentifier id)
           
 
Methods inherited from interface org.geotools.caching.spatialindex.Entry
getShape
 

Method Detail

getChildrenCount

int getChildrenCount()
Returns:
the number of child nodes

getDataCount

int getDataCount()
Returns:
the amount of data stored in the node

getChildIdentifier

NodeIdentifier getChildIdentifier(int index)
                                  throws java.lang.IndexOutOfBoundsException
Parameters:
index -
Returns:
the child node identifier at the given index
Throws:
java.lang.IndexOutOfBoundsException

getIdentifier

NodeIdentifier getIdentifier()
Returns:
the id of the node

setIdentifier

void setIdentifier(NodeIdentifier id)
Parameters:
id - sets the id of the node

getLevel

int getLevel()

isIndex

boolean isIndex()

isLeaf

boolean isLeaf()
If the node is a leaf node (has no children)

Returns:

clear

void clear()
Clears all the data in the node.



Copyright © 1996-2010 Geotools. All Rights Reserved.