Class LooseQuadTree<T>
java.lang.Object
org.aksw.commons.collections.quadtree.LooseQuadTree<T>
- Record Components:
bounds- Maximum bounds (e.g. (-180, -90) - (180, 90) for spanning the all wgs84 coordinates)maxDepth- Maximum depth of the treek- The factor controlling the additional size of nodes in contrast to classic QuadTrees.
A LooseQuadTree data structure.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<Object,QuadTreeNode<T>> Map where objects have been insertedprotected doubleprotected QuadTreeNode<T> -
Constructor Summary
ConstructorsConstructorDescriptionLooseQuadTree(org.locationtech.jts.geom.Envelope bounds, int maxDepth, float k) -
Method Summary
Modifier and TypeMethodDescriptionacquireNodes(org.locationtech.jts.geom.Envelope bounds, int depth) Retrieve the node that completely encompasses the given boundsList<?>query(org.locationtech.jts.geom.Envelope bounds, int depth)
-
Field Details
-
k
protected double k -
rootNode
-
idToNodes
Map where objects have been inserted
-
-
Constructor Details
-
LooseQuadTree
public LooseQuadTree(org.locationtech.jts.geom.Envelope bounds, int maxDepth, float k)
-
-
Method Details
-
getRootNode
-
acquireNodes
public Collection<QuadTreeNode<T>> acquireNodes(org.locationtech.jts.geom.Envelope bounds, int depth) Retrieve the node that completely encompasses the given bounds- Parameters:
bounds-
-
query
-