|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.index.tree.IndexTree<N,E>
de.lmu.ifi.dbs.elki.index.tree.spatial.SpatialIndexTree<N,E>
de.lmu.ifi.dbs.elki.index.tree.spatial.rstarvariants.AbstractRStarTree<N,E>
de.lmu.ifi.dbs.elki.index.tree.spatial.rstarvariants.NonFlatRStarTree<N,E>
N - Node typeE - Entry typepublic abstract class NonFlatRStarTree<N extends AbstractRStarTreeNode<N,E>,E extends SpatialEntry>

Abstract superclass for all non-flat R*-Tree variants.
| Field Summary |
|---|
| Fields inherited from class de.lmu.ifi.dbs.elki.index.tree.spatial.rstarvariants.AbstractRStarTree |
|---|
bulkSplitter, distanceCalcs, extraIntegrityChecks, height, insertionStrategy, lastInsertedEntry, nodeSplitter, reinsertions |
| Fields inherited from class de.lmu.ifi.dbs.elki.index.tree.IndexTree |
|---|
dirCapacity, dirMinimum, initialized, leafCapacity, leafMinimum |
| Constructor Summary | |
|---|---|
NonFlatRStarTree(PageFile<N> pagefile,
BulkSplit bulkSplitter,
InsertionStrategy insertionStrategy)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
bulkLoad(List<E> spatialObjects)
Performs a bulk load on this RTree with the specified data. |
protected int |
computeHeight()
Computes the height of this RTree. |
private List<N> |
createDirectoryNodes(List<N> 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,
List<? extends SpatialComparable> 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. |
| Methods inherited from class de.lmu.ifi.dbs.elki.index.tree.spatial.rstarvariants.AbstractRStarTree |
|---|
adjustTree, canBulkLoad, choosePath, clearReinsertions, containedTest, createBulkLeafNodes, createNewDirectoryEntry, createNewRoot, deletePath, doExtraIntegrityChecks, findPathToObject, getHeight, getLeaves, initializeCapacities, initializeFromFile, insertDirectoryEntry, insertLeaf, insertLeafEntry, reInsert, setHeight, toString |
| Methods inherited from class de.lmu.ifi.dbs.elki.index.tree.IndexTree |
|---|
createHeader, createNewDirectoryNode, createNewLeafNode, createRootEntry, deleteNode, getFile, getLogger, getNode, getNode, getPageFileStatistics, getPageID, getPageSize, getRoot, getRootEntry, getRootID, getRootPath, initialize, initialize, isRoot, postDelete, preInsert, writeNode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NonFlatRStarTree(PageFile<N> pagefile,
BulkSplit bulkSplitter,
InsertionStrategy insertionStrategy)
pagefile - Page filebulkSplitter - bulk load strategyinsertionStrategy - the strategy to find the child to insert to| Method Detail |
|---|
protected boolean hasOverflow(N node)
hasOverflow in class AbstractRStarTree<N extends AbstractRStarTreeNode<N,E>,E extends SpatialEntry>node - the node to be tested for overflow
protected boolean hasUnderflow(N node)
hasUnderflow in class AbstractRStarTree<N extends AbstractRStarTreeNode<N,E>,E extends SpatialEntry>node - the node to be tested for underflow
protected int computeHeight()
computeHeight in class AbstractRStarTree<N extends AbstractRStarTreeNode<N,E>,E extends SpatialEntry>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(List<E> spatialObjects)
bulkLoad in class AbstractRStarTree<N extends AbstractRStarTreeNode<N,E>,E extends SpatialEntry>private List<N> createDirectoryNodes(List<N> nodes)
nodes - the nodes to be inserted
private N createRoot(N root,
List<? extends SpatialComparable> objects)
root - the new root nodeobjects - the spatial objects to be inserted
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||