|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
public interface Node<N extends Node<N,E>,E extends Entry>
This interface defines the common requirements of nodes in an index structure. A node has to extend the page interface for persistent storage and has to provide an enumeration over its children.
Page| Method Summary | |
|---|---|
int |
addDirectoryEntry(E entry)
Adds a new directory entry to this node's children and returns the index of the entry in this node's children array. |
int |
addLeafEntry(E entry)
Adds a new leaf entry to this node's children and returns the index of the entry in this node's children array. |
Enumeration<TreeIndexPath<E>> |
children(TreeIndexPath<E> parentPath)
Returns an enumeration of the children paths of this node. |
E |
getEntry(int index)
Returns the entry at the specified index. |
int |
getNumEntries()
Returns the number of entries of this node. |
boolean |
isLeaf()
Returns true if this node is a leaf node, false otherwise. |
| Methods inherited from interface de.lmu.ifi.dbs.elki.persistent.Page |
|---|
getID, isDirty, setDirty, setFile, setID |
| Methods inherited from interface java.io.Externalizable |
|---|
readExternal, writeExternal |
| Method Detail |
|---|
Enumeration<TreeIndexPath<E>> children(TreeIndexPath<E> parentPath)
parentPath - the path to this node
int getNumEntries()
boolean isLeaf()
E getEntry(int index)
index - the index of the entry to be returned
int addLeafEntry(E entry)
entry - the leaf entry to be added
UnsupportedOperationException - if entry is not a leaf entry or
this node is not a leaf nodeint addDirectoryEntry(E entry)
entry - the directory entry to be added
UnsupportedOperationException - if entry is not a directory entry or
this node is not a directory node
|
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||||