public class HRPlusContainerNode
extends java.lang.Object
Constructor and Description |
---|
HRPlusContainerNode() |
Modifier and Type | Method and Description |
---|---|
void |
addNode(HRPlusNode node) |
boolean |
allNodesContainLayerId(ObjectId layerId) |
ObjectId |
getId() |
java.util.List<ObjectId> |
getLayerIds()
Get all the layer ids contained by this container node and all sub-nodes.
|
Envelope |
getMBR()
Compute the minimum bounding rectangle for nodes in this tree.
|
java.util.List<HRPlusNode> |
getNodes() |
java.util.List<HRPlusNode> |
getNodesForLayer(ObjectId layerId) |
int |
getNumNodes() |
ObjectId |
getObjectId() |
void |
getOverlap(Envelope env)
Modify the given envelope to contain all nodes within this tree.
|
ObjectId |
getParentId() |
TYPE |
getType() |
boolean |
isLeaf()
Determine whether this container is a leaf.
|
boolean |
isOneStepAboveLeafLevel()
Check whether any children of this node are leaves.
|
void |
query(Envelope env,
java.util.List<HRPlusNode> matches)
Search this container for nodes within the envelope @param env and recurse
into their containers.
|
HRPlusNode |
removeNode(ObjectId objectId) |
public java.util.List<ObjectId> getLayerIds()
public ObjectId getObjectId()
public ObjectId getParentId()
public int getNumNodes()
public void addNode(HRPlusNode node)
public HRPlusNode removeNode(ObjectId objectId)
public java.util.List<HRPlusNode> getNodes()
public boolean allNodesContainLayerId(ObjectId layerId)
layerId
- public java.util.List<HRPlusNode> getNodesForLayer(ObjectId layerId)
layerId
- public boolean isLeaf()
public boolean isOneStepAboveLeafLevel()
public void getOverlap(Envelope env)
env
- public Envelope getMBR()
public void query(Envelope env, java.util.List<HRPlusNode> matches)
env
- matches
- list of nodes across the entire tree that fit in this envelopepublic TYPE getType()
public ObjectId getId()