public abstract class FlatRStarTree extends AbstractRStarTree<FlatRStarTreeNode,SpatialEntry,RTreeSettings>
AbstractRStarTree.Statistics
Modifier and Type | Field and Description |
---|---|
private static Logging |
LOG
The logger for this class.
|
private FlatRStarTreeNode |
root
The root of this flat RTree.
|
EXTRA_INTEGRITY_CHECKS, height, settings, statistics
dirCapacity, dirMinimum, initialized, leafCapacity, leafMinimum
Constructor and Description |
---|
FlatRStarTree(PageFile<FlatRStarTreeNode> pagefile,
RTreeSettings settings)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
bulkLoad(java.util.List<SpatialEntry> spatialObjects)
Performs a bulk load on this RTree with the specified data.
|
protected int |
computeHeight()
Returns the height of this FlatRTree.
|
protected void |
createEmptyRoot(SpatialEntry exampleLeaf)
Creates an empty root node and writes it to file.
|
protected SpatialEntry |
createNewDirectoryEntry(FlatRStarTreeNode node)
Creates a new directory entry representing the specified node.
|
protected FlatRStarTreeNode |
createNewDirectoryNode()
Creates a new directory node with the specified capacity.
|
protected FlatRStarTreeNode |
createNewLeafNode()
Creates a new leaf node with the specified capacity.
|
protected SpatialEntry |
createRootEntry()
Creates an entry representing the root node.
|
protected Logging |
getLogger()
Get the (STATIC) logger for this class.
|
FlatRStarTreeNode |
getRoot()
Returns the root node of this RTree.
|
protected boolean |
hasOverflow(FlatRStarTreeNode node)
Returns true if in the specified node an overflow occurred, false
otherwise.
|
protected boolean |
hasUnderflow(FlatRStarTreeNode node)
Returns true if in the specified node an underflow occurred, false
otherwise.
|
void |
initializeFromFile(TreeIndexHeader header,
PageFile<FlatRStarTreeNode> file)
Initializes the flat RTree from an existing persistent file.
|
adjustTree, canBulkLoad, choosePath, containedTest, createBulkLeafNodes, createNewRoot, deletePath, doExtraIntegrityChecks, findPathToObject, getHeight, getLeaves, initializeCapacities, insertDirectoryEntry, insertLeaf, insertLeafEntry, logStatistics, reInsert, setHeight, toString
createHeader, deleteNode, getDirMinimum, getFile, getLeafMinimum, getNode, getNode, getPageID, getPageSize, getRootEntry, getRootID, getRootPath, initialize, initialize, isRoot, postDelete, preInsert, writeNode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLongName, getShortName
private static final Logging LOG
private FlatRStarTreeNode root
public FlatRStarTree(PageFile<FlatRStarTreeNode> pagefile, RTreeSettings settings)
pagefile
- Page filesettings
- Tree settingspublic void initializeFromFile(TreeIndexHeader header, PageFile<FlatRStarTreeNode> file)
initializeFromFile
in class AbstractRStarTree<FlatRStarTreeNode,SpatialEntry,RTreeSettings>
header
- File headerfile
- Page filepublic FlatRStarTreeNode getRoot()
getRoot
in class IndexTree<FlatRStarTreeNode,SpatialEntry>
protected int computeHeight()
computeHeight
in class AbstractRStarTree<FlatRStarTreeNode,SpatialEntry,RTreeSettings>
protected void bulkLoad(java.util.List<SpatialEntry> spatialObjects)
bulkLoad
in class AbstractRStarTree<FlatRStarTreeNode,SpatialEntry,RTreeSettings>
spatialObjects
- Entries to bulk loadprotected void createEmptyRoot(SpatialEntry exampleLeaf)
IndexTree
createEmptyRoot
in class IndexTree<FlatRStarTreeNode,SpatialEntry>
exampleLeaf
- an object that will be stored in the indexprotected boolean hasOverflow(FlatRStarTreeNode node)
hasOverflow
in class AbstractRStarTree<FlatRStarTreeNode,SpatialEntry,RTreeSettings>
node
- the node to be tested for overflowprotected boolean hasUnderflow(FlatRStarTreeNode node)
hasUnderflow
in class AbstractRStarTree<FlatRStarTreeNode,SpatialEntry,RTreeSettings>
node
- the node to be tested for underflowprotected FlatRStarTreeNode createNewLeafNode()
createNewLeafNode
in class IndexTree<FlatRStarTreeNode,SpatialEntry>
protected FlatRStarTreeNode createNewDirectoryNode()
createNewDirectoryNode
in class IndexTree<FlatRStarTreeNode,SpatialEntry>
protected SpatialEntry createNewDirectoryEntry(FlatRStarTreeNode node)
AbstractRStarTree
createNewDirectoryEntry
in class AbstractRStarTree<FlatRStarTreeNode,SpatialEntry,RTreeSettings>
node
- the node to be represented by the new entryprotected SpatialEntry createRootEntry()
IndexTree
createRootEntry
in class IndexTree<FlatRStarTreeNode,SpatialEntry>
protected Logging getLogger()
IndexTree
getLogger
in class IndexTree<FlatRStarTreeNode,SpatialEntry>
Copyright © 2019 ELKI Development Team. License information.