E
- Actual entry typeprivate class TopologicalSplitter.Split<E extends SpatialEntry> extends Object
Modifier and Type | Field and Description |
---|---|
(package private) int |
bestSorting
Indicates whether the sorting according to maximal or to minimal value
has been used for choosing the split axis and split point.
|
(package private) List<E> |
maxSorting
The entries sorted according to their max values of their MBRs.
|
(package private) List<E> |
minSorting
The entries sorted according to their min values of their MBRs.
|
(package private) int |
splitAxis
The split axis.
|
(package private) int |
splitPoint
The index of the split point.
|
Constructor and Description |
---|
TopologicalSplitter.Split()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
chooseSplitAxis(List<E> entries,
int minEntries)
Chooses a split axis.
|
(package private) void |
chooseSplitPoint(int minEntries)
Chooses a split axis.
|
List<E> |
getBestSorting()
Returns whether the sorting according to maximal or to minimal value has
been used for choosing the split axis and split point.
|
int |
getSplitPoint()
Returns the split point.
|
private HyperBoundingBox |
mbr(List<E> entries,
int from,
int to)
Computes and returns the mbr of the specified nodes, only the nodes
between from and to index are considered.
|
int splitAxis
int splitPoint
int bestSorting
List<E extends SpatialEntry> maxSorting
List<E extends SpatialEntry> minSorting
void chooseSplitAxis(List<E> entries, int minEntries)
entries
- the entries to be splitminEntries
- number of minimum entries in the node to be splitvoid chooseSplitPoint(int minEntries)
minEntries
- number of minimum entries in the node to be splitprivate HyperBoundingBox mbr(List<E> entries, int from, int to)
entries
- the array of nodesfrom
- the start indexto
- the end indexpublic int getSplitPoint()