Modifier and Type | Method and Description |
---|---|
<T,S extends Geometry> |
create()
Builds the
RTree . |
<T,S extends Geometry> |
create(List<Entry<T,S>> entries)
Create an RTree by bulk loading, using the STR method.
|
RTree.Builder |
factory(Factory<?,? extends Geometry> factory) |
RTree.Builder |
loadingFactor(double factor)
The factor is used as the fill ratio during bulk loading.
|
RTree.Builder |
maxChildren(int maxChildren)
Sets the max number of children in an R-tree node.
|
RTree.Builder |
minChildren(int minChildren)
When the number of children in an R-tree node drops below this number the
node is deleted and the children are added on to the R-tree again.
|
RTree.Builder |
selector(Selector selector)
Sets the node
Selector which decides which branches to follow when
inserting or searching. |
RTree.Builder |
splitter(Splitter splitter)
Sets the
Splitter to use when maxChildren is reached. |
RTree.Builder |
star()
Sets the splitter to
SplitterRStar and selector to
SelectorRStar and defaults to minChildren=10. |
public RTree.Builder loadingFactor(double factor)
factor
- loading factorpublic RTree.Builder minChildren(int minChildren)
minChildren
- less than this number of children in a node triggers a
redistribution of its children.public RTree.Builder maxChildren(int maxChildren)
maxChildren
- max number of children in R-tree node.public RTree.Builder splitter(Splitter splitter)
Splitter
to use when maxChildren is reached.splitter
- node splitting method to usepublic RTree.Builder selector(Selector selector)
Selector
which decides which branches to follow when
inserting or searching.selector
- selects the branch to follow when inserting or searchingpublic RTree.Builder star()
SplitterRStar
and selector to
SelectorRStar
and defaults to minChildren=10.public RTree.Builder factory(Factory<?,? extends Geometry> factory)
public <T,S extends Geometry> RTree<T,S> create()
RTree
.T
- value typeS
- geometry typepublic <T,S extends Geometry> RTree<T,S> create(List<Entry<T,S>> entries)
Note: this method mutates the input entries, the internal order of the List may be changed.
entries
- entries to be added to the r-treeCopyright © 2013–2024. All rights reserved.