Class NodeBase
java.lang.Object
org.locationtech.jts.index.bintree.NodeBase
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllItems(List items) voidaddAllItemsFromOverlapping(Interval interval, Collection resultItems) Adds items in the tree which potentially overlap the query interval to the given collection.getItems()static intgetSubnodeIndex(Interval interval, double centre) Returns the index of the subnode that wholely contains the given interval.booleanbooleanhasItems()booleanprotected abstract booleanisSearchMatch(Interval interval) booleanRemoves a single item from this subtree.
-
Field Details
-
items
-
subnode
subnodes are numbered as follows: 0 | 1
-
-
Constructor Details
-
NodeBase
public NodeBase()
-
-
Method Details
-
getSubnodeIndex
Returns the index of the subnode that wholely contains the given interval. If none does, returns -1. -
getItems
-
add
-
addAllItems
-
isSearchMatch
-
addAllItemsFromOverlapping
Adds items in the tree which potentially overlap the query interval to the given collection. If the query interval is null, add all items in the tree.- Parameters:
interval- a query interval, or nullresultItems- the candidate items found
-
remove
-
isPrunable
public boolean isPrunable() -
hasChildren
public boolean hasChildren() -
hasItems
public boolean hasItems()
-