de.lmu.ifi.dbs.elki.index.tree.spatial.rstarvariants.deliclu
Class DeLiCluNode
java.lang.Object
de.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.persistent.AbstractPage<N>
de.lmu.ifi.dbs.elki.index.tree.AbstractNode<N,E>
de.lmu.ifi.dbs.elki.index.tree.spatial.rstarvariants.AbstractRStarTreeNode<DeLiCluNode,DeLiCluEntry>
de.lmu.ifi.dbs.elki.index.tree.spatial.rstarvariants.deliclu.DeLiCluNode
- All Implemented Interfaces:
- Node<DeLiCluNode,DeLiCluEntry>, SpatialComparable, SpatialNode<DeLiCluNode,DeLiCluEntry>, SpatialObject, Loggable, Page<DeLiCluNode>, Externalizable, Serializable
public class DeLiCluNode
- extends AbstractRStarTreeNode<DeLiCluNode,DeLiCluEntry>
Represents a node in a DeLiClu-Tree.
- Author:
- Elke Achtert
- See Also:
- Serialized Form
Constructor Summary |
DeLiCluNode()
Empty constructor for Externalizable interface. |
DeLiCluNode(PageFile<DeLiCluNode> file,
int capacity,
boolean isLeaf)
Creates a new DeLiCluNode with the specified parameters. |
Method Summary |
void |
adjustEntry(DeLiCluEntry entry)
Adjusts the parameters of the entry representing this node. |
protected DeLiCluNode |
createNewDirectoryNode(int capacity)
Creates a new directory node with the specified capacity. |
protected DeLiCluNode |
createNewLeafNode(int capacity)
Creates a new leaf node with the specified capacity. |
boolean |
hasHandled()
Returns true, if the children of this node (or their child nodes)
contain handled data objects. |
boolean |
hasUnhandled()
Returns true, if the children of this node (or their child nodes)
contain unhandled data objects. |
protected void |
testEntry(DeLiCluNode parent,
int index)
Tests, if the parameters of the entry representinmg this node, are correctly set. |
Methods inherited from class de.lmu.ifi.dbs.elki.index.tree.AbstractNode |
addDirectoryEntry, addLeafEntry, children, deleteAllEntries, deleteEntry, equals, getCapacity, getEntries, getEntry, getNumEntries, increaseEntries, isLeaf, readExternal, toString, writeExternal |
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, verbose, warning |
Methods inherited from interface de.lmu.ifi.dbs.elki.index.tree.spatial.SpatialObject |
getID |
DeLiCluNode
public DeLiCluNode()
- Empty constructor for Externalizable interface.
DeLiCluNode
public DeLiCluNode(PageFile<DeLiCluNode> file,
int capacity,
boolean isLeaf)
- Creates a new DeLiCluNode with the specified parameters.
- Parameters:
file
- the file storing the DeLiClu-Treecapacity
- the capacity (maximum number of entries plus 1 for overflow)
of this nodeisLeaf
- indicates wether this node is a leaf node
hasHandled
public boolean hasHandled()
- Returns true, if the children of this node (or their child nodes)
contain handled data objects.
- Returns:
- true, if the children of this node (or their child nodes)
contain handled data objects
hasUnhandled
public boolean hasUnhandled()
- Returns true, if the children of this node (or their child nodes)
contain unhandled data objects.
- Returns:
- true, if the children of this node (or their child nodes)
contain unhandled data objects
createNewLeafNode
protected DeLiCluNode createNewLeafNode(int capacity)
- Creates a new leaf node with the specified capacity.
- Specified by:
createNewLeafNode
in class AbstractRStarTreeNode<DeLiCluNode,DeLiCluEntry>
- Parameters:
capacity
- the capacity of the new node
- Returns:
- a new leaf node
createNewDirectoryNode
protected DeLiCluNode createNewDirectoryNode(int capacity)
- Creates a new directory node with the specified capacity.
- Specified by:
createNewDirectoryNode
in class AbstractRStarTreeNode<DeLiCluNode,DeLiCluEntry>
- Parameters:
capacity
- the capacity of the new node
- Returns:
- a new directory node
adjustEntry
public void adjustEntry(DeLiCluEntry entry)
- Description copied from class:
AbstractRStarTreeNode
- Adjusts the parameters of the entry representing this node.
- Overrides:
adjustEntry
in class AbstractRStarTreeNode<DeLiCluNode,DeLiCluEntry>
- Parameters:
entry
- the entry representing this node- See Also:
AbstractRStarTreeNode.adjustEntry(de.lmu.ifi.dbs.elki.index.tree.spatial.SpatialEntry)
testEntry
protected void testEntry(DeLiCluNode parent,
int index)
- Tests, if the parameters of the entry representinmg this node, are correctly set.
Subclasses may need to overwrite this method.
- Overrides:
testEntry
in class AbstractRStarTreeNode<DeLiCluNode,DeLiCluEntry>
- Parameters:
parent
- the parent holding the entry representing this nodeindex
- the index of the entry in the parents child arry