|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectpt.ist.fenixframework.core.AbstractDomainObject
pt.ist.fenixframework.adt.bplustree.BPlusTree_Base
pt.ist.fenixframework.adt.bplustree.BPlusTree<T>
public class BPlusTree<T extends Serializable>
Implementation of a persistence-independent B+Tree. This implementation is modelled in DML and
can be used with any backend. This B+Tree can store any value (except nulls) associated with any
key as long as the following restrictions are followed: Both the key and the value need to be
Serializable; the key also needs to be Comparable; and keys must
comparable to each other (e.g. the same BPlusTree instance cannot simultaneously support keys of
type Integer and String).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class pt.ist.fenixframework.core.AbstractDomainObject |
|---|
AbstractDomainObject.SerializedForm |
| Field Summary |
|---|
| Fields inherited from class pt.ist.fenixframework.adt.bplustree.BPlusTree_Base |
|---|
AdtBPlusTreeHasRootNode, role$$root |
| Constructor Summary | |
|---|---|
BPlusTree()
|
|
| Method Summary | ||
|---|---|---|
boolean |
containsKey(Comparable key)
Returns true if this map contains a mapping for the specified key. |
|
String |
dump(int level,
boolean dumpKeysOnly,
boolean dumpNodeIds)
|
|
T |
get(Comparable key)
Returns the value to which the specified key is mapped, or null if this map
contains no mapping for the key. |
|
T |
getIndex(int index)
Return the value at the index-th position (zero-based). |
|
|
getKeys()
Returns the set of keys mapped by this tree |
|
void |
insert(Comparable key,
T value)
Inserts the given key-value pair, overwriting any previous entry for the same key |
|
Iterator |
iterator()
|
|
boolean |
myEquals(BPlusTree other)
|
|
void |
remove(Comparable key)
Removes the element with the given key |
|
T |
removeIndex(int index)
Remove and return the value at the index-th position (zero-based). |
|
int |
size()
Returns the number of key-value mappings in this map |
|
| Methods inherited from class pt.ist.fenixframework.adt.bplustree.BPlusTree_Base |
|---|
getRoot, hasRoot, removeRoot, setRoot |
| Methods inherited from class pt.ist.fenixframework.core.AbstractDomainObject |
|---|
ensureOid, equals, getExternalId, getOid, hashCode, makeSerializedForm, toString, writeReplace |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BPlusTree()
| Method Detail |
|---|
public void insert(Comparable key,
T value)
insert in interface IBPlusTree<T extends Serializable>public void remove(Comparable key)
remove in interface IBPlusTree<T extends Serializable>public T get(Comparable key)
null if this map
contains no mapping for the key.
get in interface IBPlusTree<T extends Serializable>public T getIndex(int index)
public T removeIndex(int index)
public boolean containsKey(Comparable key)
true if this map contains a mapping for the specified key.
public int size()
public String dump(int level,
boolean dumpKeysOnly,
boolean dumpNodeIds)
public Iterator iterator()
public boolean myEquals(BPlusTree other)
public <T extends Comparable> Set<T> getKeys()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||