Class PointRegionQuadTree<L>
java.lang.Object
com.espertech.esper.common.internal.epl.spatial.quadtree.pointregion.PointRegionQuadTree<L>
Quad tree.
Branch nodes have 4 regions or child nodes that subdivide the parent region in NW/NE/SW/SE.
Nodes can either be leaf nodes or branch nodes. Only leaf nodes have "points". "Points" is modelled as a generic type.
The tree is polymorphic: leaf nodes can become branches and branches can become leafs.
Manipulation and querying of the quad tree is done through tool classes. As the tree can be polymorphic users should not hold on to the root node as it could change.
-
Constructor Summary
ConstructorDescriptionPointRegionQuadTree
(int leafCapacity, int maxTreeHeight, PointRegionQuadTreeNode<L> root) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
int
int
getRoot()
void
setRoot
(PointRegionQuadTreeNode<L> root)
-
Constructor Details
-
PointRegionQuadTree
-
-
Method Details
-
getLeafCapacity
public int getLeafCapacity() -
getMaxTreeHeight
public int getMaxTreeHeight() -
getRoot
-
setRoot
-
clear
public void clear()
-