N
- Node typeE
- Entry typepublic abstract class NonFlatRStarTree<N extends AbstractRStarTreeNode<N,E>,E extends SpatialEntry,S extends RTreeSettings> extends AbstractRStarTree<N,E,S>
AbstractRStarTree.Statistics
EXTRA_INTEGRITY_CHECKS, height, lastInsertedEntry, settings, statistics
dirCapacity, dirMinimum, initialized, leafCapacity, leafMinimum
Constructor and Description |
---|
NonFlatRStarTree(PageFile<N> pagefile,
S settings)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
bulkLoad(java.util.List<E> spatialObjects)
Performs a bulk load on this RTree with the specified data.
|
protected int |
computeHeight()
Computes the height of this RTree.
|
private java.util.List<E> |
createBulkDirectoryNodes(java.util.List<E> nodes)
Creates and returns the directory nodes for bulk load.
|
protected void |
createEmptyRoot(E exampleLeaf)
Creates an empty root node and writes it to file.
|
private N |
createRoot(N root,
java.util.List<E> objects)
Returns a root node for bulk load.
|
protected boolean |
hasOverflow(N node)
Returns true if in the specified node an overflow occurred, false
otherwise.
|
protected boolean |
hasUnderflow(N node)
Returns true if in the specified node an underflow occurred, false
otherwise.
|
adjustTree, canBulkLoad, choosePath, containedTest, createBulkLeafNodes, createNewDirectoryEntry, createNewRoot, deletePath, doExtraIntegrityChecks, findPathToObject, getHeight, getLeaves, initializeCapacities, initializeFromFile, insertDirectoryEntry, insertLeaf, insertLeafEntry, logStatistics, reInsert, setHeight, toString
createHeader, createNewDirectoryNode, createNewLeafNode, createRootEntry, deleteNode, getDirMinimum, getFile, getLeafMinimum, getLogger, getNode, getNode, getPageID, getPageSize, getRoot, getRootEntry, getRootID, getRootPath, initialize, initialize, isRoot, postDelete, preInsert, writeNode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLongName, getShortName
protected boolean hasOverflow(N node)
hasOverflow
in class AbstractRStarTree<N extends AbstractRStarTreeNode<N,E>,E extends SpatialEntry,S extends RTreeSettings>
node
- the node to be tested for overflowprotected boolean hasUnderflow(N node)
hasUnderflow
in class AbstractRStarTree<N extends AbstractRStarTreeNode<N,E>,E extends SpatialEntry,S extends RTreeSettings>
node
- the node to be tested for underflowprotected int computeHeight()
computeHeight
in class AbstractRStarTree<N extends AbstractRStarTreeNode<N,E>,E extends SpatialEntry,S extends RTreeSettings>
protected void createEmptyRoot(E exampleLeaf)
IndexTree
createEmptyRoot
in class IndexTree<N extends AbstractRStarTreeNode<N,E>,E extends SpatialEntry>
exampleLeaf
- an object that will be stored in the indexprotected void bulkLoad(java.util.List<E> spatialObjects)
bulkLoad
in class AbstractRStarTree<N extends AbstractRStarTreeNode<N,E>,E extends SpatialEntry,S extends RTreeSettings>
spatialObjects
- Entries to bulk loadprivate java.util.List<E> createBulkDirectoryNodes(java.util.List<E> nodes)
nodes
- the nodes to be insertedprivate N createRoot(N root, java.util.List<E> objects)
root
- the new root nodeobjects
- the spatial objects to be insertedCopyright © 2019 ELKI Development Team. License information.