|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.caching.grid.spatialindex.GridNode
public class GridNode
A node in the grid.
Data objects are stored in an HashSet.
Field Summary | |
---|---|
protected java.util.HashSet<GridData> |
data
|
protected RegionNodeIdentifier |
id
|
Constructor Summary | |
---|---|
protected |
GridNode()
No-arg constructor for serialization purpose. |
protected |
GridNode(RegionNodeIdentifier id)
|
Method Summary | |
---|---|
void |
clear()
Erase all data referenced by this node and clears the valid field of associated node id. |
protected void |
deleteData(GridData data)
|
NodeIdentifier |
getChildIdentifier(int index)
|
int |
getChildrenCount()
|
java.util.HashSet<GridData> |
getData()
|
int |
getDataCount()
|
NodeIdentifier |
getIdentifier()
|
int |
getLevel()
|
Shape |
getShape()
|
protected boolean |
insertData(GridData data)
Insert new data in this node. |
boolean |
isIndex()
|
boolean |
isLeaf()
If the node is a leaf node (has no children) |
void |
setIdentifier(NodeIdentifier id)
|
java.lang.String |
toReadableText()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.HashSet<GridData> data
protected transient RegionNodeIdentifier id
Constructor Detail |
---|
protected GridNode()
protected GridNode(RegionNodeIdentifier id)
Method Detail |
---|
public void setIdentifier(NodeIdentifier id)
setIdentifier
in interface Node
id
- sets the id of the nodepublic NodeIdentifier getChildIdentifier(int index) throws java.lang.IndexOutOfBoundsException
getChildIdentifier
in interface Node
java.lang.IndexOutOfBoundsException
public int getChildrenCount()
getChildrenCount
in interface Node
public int getLevel()
getLevel
in interface Node
public boolean isIndex()
isIndex
in interface Node
public boolean isLeaf()
Node
isLeaf
in interface Node
public NodeIdentifier getIdentifier()
getIdentifier
in interface Node
public Shape getShape()
getShape
in interface Entry
protected boolean insertData(GridData data)
id
- of datadata
- protected void deleteData(GridData data)
public void clear()
clear
in interface Node
public int getDataCount()
getDataCount
in interface Node
public java.util.HashSet<GridData> getData()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toReadableText()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |