|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.ethz.mxquery.sms.btree.InternalNodeArrayMap
public class InternalNodeArrayMap
Helper for b-tree nodes. This is a typed version similar to LeafArrayMap. Generics not used due to inefficient use of complex types in Java 5.
| Constructor Summary | |
|---|---|
InternalNodeArrayMap(int n)
Initiates the InternalNodeArrayMap |
|
| Method Summary | |
|---|---|
void |
addAtPos(DeweyIdentifier key,
int pos,
BTreeNode rightNode)
Adds the given mapping at the given position in this array. |
int |
binarySearch(java.util.Vector a,
DeweyIdentifier key,
int from,
int to)
|
boolean |
delete(DeweyIdentifier key)
Returns false if key was not found. |
void |
deleteAtPos(int pos)
Deletes the key-node mapping at the given position. |
BTreeNode |
get(DeweyIdentifier key)
Returns the node corresponding to the interval in which the provided key falls. |
int |
getIntervalPosition(DeweyIdentifier key)
Obtains the position in the nodes array that represents the interval in which the provided key falls. |
DeweyIdentifier |
getMidKey()
|
void |
put(DeweyIdentifier key,
BTreeNode rightNode)
Puts the given key to rightNode association in the node array map. |
int |
size()
|
InternalNodeArrayMap |
split()
Splits this map, keeps entries from 0 to (mid-1) and returns a new map with entries from (mid+1) to (currentSize-1). |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InternalNodeArrayMap(int n)
| Method Detail |
|---|
public int binarySearch(java.util.Vector a,
DeweyIdentifier key,
int from,
int to)
public DeweyIdentifier getMidKey()
public InternalNodeArrayMap split()
public void put(DeweyIdentifier key,
BTreeNode rightNode)
key - rightNode - public BTreeNode get(DeweyIdentifier key)
key -
public int getIntervalPosition(DeweyIdentifier key)
key -
public boolean delete(DeweyIdentifier key)
key -
public void deleteAtPos(int pos)
pos - public java.lang.String toString()
toString in class java.lang.Objectpublic int size()
public void addAtPos(DeweyIdentifier key,
int pos,
BTreeNode rightNode)
key - rightNode - pos -
|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||