
@Reference(authors="N. Beckmann, H.-P. Kriegel, R. Schneider, B. Seeger", title="The R*-tree: an efficient and robust access method for points and rectangles", booktitle="Proceedings of the 1990 ACM SIGMOD International Conference on Management of Data, Atlantic City, NJ, May 23-25, 1990", url="http://dx.doi.org/10.1145/93597.98741") public class CombinedInsertionStrategy extends Object implements InsertionStrategy
N. Beckmann, H.-P. Kriegel, R. Schneider, B. Seeger:
The R*-tree: an efficient and robust access method for points and rectangles
in: Proceedings of the 1990 ACM SIGMOD International Conference on Management
of Data, Atlantic City, NJ, May 23-25, 1990
| Modifier and Type | Class and Description |
|---|---|
static class |
CombinedInsertionStrategy.Parameterizer
Parameterization class.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) InsertionStrategy |
dirStrategy
Strategy when inserting into directory nodes
|
(package private) InsertionStrategy |
leafStrategy
Strategy when inserting into leaf nodes.
|
| Constructor and Description |
|---|
CombinedInsertionStrategy(InsertionStrategy dirStrategy,
InsertionStrategy leafStrategy)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<A> int |
choose(A options,
ArrayAdapter<? extends SpatialComparable,A> getter,
SpatialComparable obj,
int height,
int depth)
Choose insertion rectangle.
|
InsertionStrategy dirStrategy
InsertionStrategy leafStrategy
public CombinedInsertionStrategy(InsertionStrategy dirStrategy, InsertionStrategy leafStrategy)
dirStrategy - Strategy for directory nodesleafStrategy - Strategy for leaf nodespublic <A> int choose(A options,
ArrayAdapter<? extends SpatialComparable,A> getter,
SpatialComparable obj,
int height,
int depth)
InsertionStrategychoose in interface InsertionStrategyoptions - Options to choose fromgetter - Array adapter for optionsobj - Insertion objectheight - Tree heightdepth - Insertion depth (depth == height - 1 indicates leaf level)