|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.btree.DBNode
public class DBNode
Field Summary | |
---|---|
static int |
M
|
Constructor Summary | |
---|---|
DBNode()
|
Method Summary | |
---|---|
int |
containsKey(Object p1)
containsKey returns true if a key is found in this node. |
DBNode |
delete(DBFile db,
Object key)
delete data entry |
Object |
findMin(DBFile db)
find smallest key in branch |
DBNode |
findNode(DBFile db,
Object key)
findNode returns the nearest node for a key. |
long |
getDBOffset()
|
Object |
getKey(int pos)
|
DBNode |
getLeft(DBFile db)
|
DBNode |
getNode(DBFile db,
int p1)
Returns a DBNode from the pointer in index p1 |
long |
getPointer(int pos)
|
DBNode |
getRight(DBFile db)
|
DBNode |
insert(DBFile db,
Object key,
Object value)
insertNode inserts a new data node and returns a new node if one was split. |
int |
keyCount()
|
void |
logmsg(String msg)
|
Object |
readLeaf(DBFile db,
Object key)
readLeaf returns the object pointed to by key |
void |
removeMin(DBFile db,
Object key)
remove smallest key in branch |
void |
replace(DBFile db,
Object key,
Object value)
insertNode replaces an existing data node. |
void |
setDBOffset(long offset)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int M
Constructor Detail |
---|
public DBNode()
Method Detail |
---|
public void logmsg(String msg)
public void setDBOffset(long offset)
public long getDBOffset()
public int containsKey(Object p1)
public Object readLeaf(DBFile db, Object key) throws Exception
Exception
public DBNode findNode(DBFile db, Object key) throws Exception
Exception
public Object findMin(DBFile db) throws Exception
Exception
public void removeMin(DBFile db, Object key) throws Exception
Exception
public DBNode delete(DBFile db, Object key) throws Exception
Exception
public DBNode getNode(DBFile db, int p1) throws Exception
Exception
public DBNode insert(DBFile db, Object key, Object value) throws Exception
Exception
public void replace(DBFile db, Object key, Object value) throws Exception
Exception
public int keyCount()
public Object getKey(int pos)
public long getPointer(int pos)
public DBNode getLeft(DBFile db) throws Exception
Exception
public DBNode getRight(DBFile db) throws Exception
Exception
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |