|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--xxl.indexStructures.Tree.Node
Node is the class used to represent leaf- and non-leaf nodes. Nodes are stored in Containers.
Tree.determineContainer,
Tree.getContainer| Inner Class Summary | |
class |
Tree.Node.SplitInfo
SplitInfo contains information on a split. |
| Field Summary | |
protected int |
level
The maximum distance to the leaves of the subtree (i.e. |
| Constructor Summary | |
Tree.Node()
|
|
| Method Summary | |
protected abstract Tree.IndexEntry |
chooseSubtree(Tree.Descriptor descriptor,
java.util.Stack path)
Chooses the subtree which is followed during an insert operation. |
protected Tree.IndexEntry |
chooseSubtree(Tree.Descriptor descriptor,
java.util.Stack path,
java.util.Set forbiddenEntries)
Chooses the subtree which is followed during an insert operation. |
abstract java.util.Iterator |
descriptors(Tree.Descriptor nodeDescriptor)
Returns an Iterator pointing to the descriptors of each entry in this node |
abstract java.util.Iterator |
entries()
Returns an Iterator pointing to all entries stored in this node. |
protected abstract void |
grow(java.lang.Object data,
java.util.Stack path)
Inserts data into the current node. |
Tree.Node |
initialize(int level)
|
protected abstract Tree.Node.SplitInfo |
initialize(java.lang.Object entry)
|
int |
level()
Returns the level the node is located on. |
abstract int |
number()
Returns the number of Entries that are currently stored in this Node. |
protected boolean |
overflows()
Returns true if the node contains more elements then its capacity allows. |
protected abstract void |
post(Tree.Node.SplitInfo splitInfo,
Tree.IndexEntry newIndexEntry)
Updates the current node with the information created by postData(). |
abstract java.util.Iterator |
query(Tree.Descriptor queryDescriptor)
Returns an Iterator of entries whose descriptors overlap with the queryDescriptor. |
protected Tree.Node |
redressOverflow(java.util.Stack path)
|
protected abstract Tree.Node.SplitInfo |
split(java.util.Stack path)
Splits the current node (i.e.. |
protected int |
splitMaxNumber()
Returns the maximal number of entries that stay in the node when the node is split. |
protected double |
splitMaxRatio()
Returns Tree.getSplitMaxRatio(). |
protected int |
splitMinNumber()
Returns the minimal number of entries that stay in the node when the node is split. |
protected double |
splitMinRatio()
Returns Tree.getSplitMinRatio(). |
protected boolean |
underflows()
Returns true if the node contains more elements then its capacity allows. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected int level
| Constructor Detail |
public Tree.Node()
| Method Detail |
public Tree.Node initialize(int level)
protected abstract Tree.Node.SplitInfo initialize(java.lang.Object entry)
protected Tree.Node redressOverflow(java.util.Stack path)
public int level()
public abstract int number()
public abstract java.util.Iterator entries()
public abstract java.util.Iterator descriptors(Tree.Descriptor nodeDescriptor)
nodeDescriptor - the descriptor of this nodetree - the tree the node belongs topublic abstract java.util.Iterator query(Tree.Descriptor queryDescriptor)
queryDescriptor - the descriptor describing the querytree - the tree the node belongs to
protected abstract Tree.IndexEntry chooseSubtree(Tree.Descriptor descriptor,
java.util.Stack path)
descriptor - the Descriptor of dataindexEntry - TODOdirty - is a reference-parameter (array.length == 1) that should be set to true if the current node was modified by this function
protected Tree.IndexEntry chooseSubtree(Tree.Descriptor descriptor,
java.util.Stack path,
java.util.Set forbiddenEntries)
descriptor - the Descriptor of dataindexEntry - TODOdirty - is a reference-parameter (array.length == 1) that should be set to true if the current node was modified by this function
protected abstract void grow(java.lang.Object data,
java.util.Stack path)
descriptor - the Descriptor of dataprotected abstract Tree.Node.SplitInfo split(java.util.Stack path)
indexEntry - TODOtree - the current treepath - the nodes already visited during this insert
protected abstract void post(Tree.Node.SplitInfo splitInfo,
Tree.IndexEntry newIndexEntry)
postData - the information created by postData()protected boolean underflows()
protected boolean overflows()
protected double splitMinRatio()
protected double splitMaxRatio()
protected int splitMinNumber()
protected int splitMaxNumber()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||