|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.caching.grid.spatialindex.GridNode
org.geotools.caching.grid.spatialindex.GridRootNode
public class GridRootNode
The root node of a grid, which has n GridNodes as children. As GridNodes do, it can store data too.
Field Summary | |
---|---|
protected java.util.ArrayList<NodeIdentifier> |
children
|
protected int |
childrenCapacity
|
protected int[] |
tiles_number
|
protected double |
tiles_size
|
Fields inherited from class org.geotools.caching.grid.spatialindex.GridNode |
---|
data, id |
Constructor Summary | |
---|---|
protected |
GridRootNode(int gridsize,
RegionNodeIdentifier id)
the mbr is read from the id; |
Method Summary | |
---|---|
void |
clear()
Only clears data the root node; does not clear the children. |
protected GridNode |
createNode(RegionNodeIdentifier id)
|
int |
getCapacity()
The maximum of allowable nodes in the grid. |
NodeIdentifier |
getChildIdentifier(int index)
|
java.util.List<java.lang.Integer> |
getChildren(Shape shape)
|
int |
getChildrenCount()
|
int |
getLevel()
|
int |
getMaximumTileCount(int dim)
The number of tiles/nodes in a given dimension. |
double |
getTileSize()
|
int |
gridIndexToNodeId(int[] index)
Converts an array of indexes into the id of a node. |
boolean |
isIndex()
|
boolean |
isLeaf()
If the node is a leaf node (has no children) |
void |
setChildIdentifier(int index,
NodeIdentifier id)
|
protected void |
split(GridSpatialIndex index)
Creates the grid by appending children to this node. |
java.lang.String |
toReadableText()
|
java.lang.String |
toString()
|
Methods inherited from class org.geotools.caching.grid.spatialindex.GridNode |
---|
deleteData, getData, getDataCount, getIdentifier, getShape, insertData, setIdentifier |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected double tiles_size
protected int[] tiles_number
protected java.util.ArrayList<NodeIdentifier> children
protected int childrenCapacity
Constructor Detail |
---|
protected GridRootNode(int gridsize, RegionNodeIdentifier id)
Method Detail |
---|
protected void split(GridSpatialIndex index)
public java.util.List<java.lang.Integer> getChildren(Shape shape)
protected GridNode createNode(RegionNodeIdentifier id)
public java.lang.String toString()
toString
in class GridNode
public NodeIdentifier getChildIdentifier(int index) throws java.lang.IndexOutOfBoundsException
getChildIdentifier
in interface Node
getChildIdentifier
in class GridNode
java.lang.IndexOutOfBoundsException
public void setChildIdentifier(int index, NodeIdentifier id)
public int getChildrenCount()
getChildrenCount
in interface Node
getChildrenCount
in class GridNode
public int getLevel()
getLevel
in interface Node
getLevel
in class GridNode
public boolean isIndex()
isIndex
in interface Node
isIndex
in class GridNode
public boolean isLeaf()
Node
isLeaf
in interface Node
isLeaf
in class GridNode
public int gridIndexToNodeId(int[] index)
index
-
public void clear()
clear
in interface Node
clear
in class GridNode
public java.lang.String toReadableText()
toReadableText
in class GridNode
public int getCapacity()
public int getMaximumTileCount(int dim)
dim
-
public double getTileSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |