N
- Node typeE
- Entry typepublic abstract class AbstractRStarTreeNode<N extends AbstractRStarTreeNode<N,E>,E extends SpatialEntry> extends AbstractNode<E> implements SpatialNode<N,E>
entries, isLeaf, numEntries
Constructor and Description |
---|
AbstractRStarTreeNode()
Empty constructor for Externalizable interface.
|
AbstractRStarTreeNode(int capacity,
boolean isLeaf)
Creates a new AbstractRStarTreeNode with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
adjustEntry(E entry)
Adjusts the parameters of the entry representing this node.
|
boolean |
adjustEntryIncremental(E entry,
SpatialComparable responsibleMBR)
Adjusts the parameters of the entry representing this node.
|
ModifiableHyperBoundingBox |
computeMBR()
Recomputing the MBR is rather expensive.
|
void |
integrityCheck(AbstractRStarTree<N,E,?> tree)
Tests this node (for debugging purposes).
|
protected void |
integrityCheckParameters(N parent,
int index)
Tests, if the parameters of the entry representing this node, are correctly
set.
|
void |
readExternal(java.io.ObjectInput in)
Reads the id of this node, the numEntries and the entries array from the
specified stream.
|
void |
writeExternal(java.io.ObjectOutput out)
Calls the super method and writes the id of this node, the numEntries and
the entries array to the specified stream.
|
addDirectoryEntry, addLeafEntry, children, deleteAllEntries, deleteEntry, getCapacity, getEntries, getEntry, getNumEntries, isLeaf, removeMask, splitByMask, splitTo, splitTo, toString
equals, getPageID, hashCode, isDirty, setDirty, setPageID
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addDirectoryEntry, addLeafEntry, children, getEntry, getNumEntries, isLeaf
public AbstractRStarTreeNode()
public AbstractRStarTreeNode(int capacity, boolean isLeaf)
capacity
- the capacity (maximum number of entries plus 1 for
overflow) of this nodeisLeaf
- indicates whether this node is a leaf nodepublic ModifiableHyperBoundingBox computeMBR()
public boolean adjustEntry(E entry)
entry
- the entry representing this nodepublic boolean adjustEntryIncremental(E entry, SpatialComparable responsibleMBR)
entry
- the entry representing this noderesponsibleMBR
- the MBR of the object or node which is responsible
for the call of the methodpublic final void integrityCheck(AbstractRStarTree<N,E,?> tree)
protected void integrityCheckParameters(N parent, int index)
parent
- the parent holding the entry representing this nodeindex
- the index of the entry in the parents child arraypublic void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class AbstractNode<E extends SpatialEntry>
out
- the stream to write the object tojava.io.IOException
- Includes any I/O exceptions that may occurpublic void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
readExternal
in class AbstractNode<E extends SpatialEntry>
in
- the stream to read data from in order to restore the objectjava.io.IOException
- if I/O errors occurjava.lang.ClassNotFoundException
- If the class for an object being restored
cannot be found.Copyright © 2019 ELKI Development Team. License information.