|
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 |
public interface BTreeNode
Represents a node from the b-tree (either directory node or leaf).
Method Summary | |
---|---|
SplitInfo |
add(DeweyIdentifier key,
LinguisticToken value,
DeweyIdentifier lowKey,
DeweyIdentifier highKey,
LeafCarrier leafCarrier)
Adds the given mapping to the node. |
ObjectObjectPair |
bulkAdd(ObjectObjectPair data,
int k,
double F)
for bulk loading |
BTreeNode |
getBTreeNode(DeweyIdentifier key)
Returns the internal node/ leaf that contains the key "key" |
void |
getFirstKeyAfter(DeweyIdentifier key,
Leaf[] inLeaf,
int[] atPos)
Creates pointers to the given key or if the key is not in the tree, to the smallest key larger than the given one that is in the tree. |
void |
getLastKeyBefore(DeweyIdentifier key,
Leaf[] inLeaf,
int[] atPos)
Creates pointers to the given key or if the key is not in the tree, to the largest key smaller than the given one that is in the tree. |
DeweyIdentifier |
getLowestKey()
gets the lowest key recursively |
BTreeNode |
getRoot()
To get the root of the btree this node is sitting in |
boolean |
isEmpty()
Indicates if this node is empty. |
boolean |
isLeaf()
Indicates if this node is a leaf. |
void |
queryRange(DeweyIdentifier lowKey,
DeweyIdentifier highKey,
BtreePushOperator results)
Obtains all values mapped to the given key range (low and high, inclusive). |
void |
remove(DeweyIdentifier key,
LinguisticToken value,
DeweyIdentifier lowKey,
DeweyIdentifier highKey)
Removes a single instance of the key-value mapping from the node. |
void |
setParent(InternalNode parentNode)
sets the parentNode. |
Method Detail |
---|
ObjectObjectPair bulkAdd(ObjectObjectPair data, int k, double F)
BTreeNode getRoot()
boolean isLeaf()
BTreeNode getBTreeNode(DeweyIdentifier key)
key
-
void getFirstKeyAfter(DeweyIdentifier key, Leaf[] inLeaf, int[] atPos)
key
- inLeaf
- points to the leaf where to get the keyatPos
- points to the position of the key inside the leafvoid getLastKeyBefore(DeweyIdentifier key, Leaf[] inLeaf, int[] atPos)
key
- inLeaf
- points to the leaf where to get the keyatPos
- points to the position of the key inside the leafvoid queryRange(DeweyIdentifier lowKey, DeweyIdentifier highKey, BtreePushOperator results)
lowKey
- highKey
- results
- SplitInfo add(DeweyIdentifier key, LinguisticToken value, DeweyIdentifier lowKey, DeweyIdentifier highKey, LeafCarrier leafCarrier)
key
- value
-
void remove(DeweyIdentifier key, LinguisticToken value, DeweyIdentifier lowKey, DeweyIdentifier highKey)
key
- lowKey
- highKey
- boolean isEmpty()
void setParent(InternalNode parentNode)
parentNode
- DeweyIdentifier getLowestKey()
|
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 |