|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjdbm.htree.HTree
public class HTree
Persistent hashtable implementation for PageManager. Implemented as an H*Tree structure. WARNING! If this instance is used in a transactional context, it *must* be discarded after a rollback.
Method Summary | |
---|---|
static HTree |
createInstance(RecordManager recman)
Create a persistent hashtable. |
java.lang.Object |
get(java.lang.Object key)
Returns the value which is associated with the given key. |
long |
getRecid()
Get the record identifier used to load this hashtable. |
FastIterator |
keys()
Returns an enumeration of the keys contained in this |
static HTree |
load(RecordManager recman,
long root_recid)
Load a persistent hashtable |
void |
put(java.lang.Object key,
java.lang.Object value)
Associates the specified value with the specified key. |
void |
remove(java.lang.Object key)
Remove the value which is associated with the given key. |
FastIterator |
values()
Returns an enumeration of the values contained in this |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static HTree createInstance(RecordManager recman) throws java.io.IOException
recman
- Record manager used for persistence.
java.io.IOException
public static HTree load(RecordManager recman, long root_recid) throws java.io.IOException
recman
- RecordManager used to store the persistent hashtableroot_recid
- Record id of the root directory of the HTree
java.io.IOException
public void put(java.lang.Object key, java.lang.Object value) throws java.io.IOException
key
- key with which the specified value is to be assocated.value
- value to be associated with the specified key.
java.io.IOException
public java.lang.Object get(java.lang.Object key) throws java.io.IOException
null
if there is not association for this key.
key
- key whose associated value is to be returned
java.io.IOException
public void remove(java.lang.Object key) throws java.io.IOException
key
- key whose associated value is to be removed
java.io.IOException
public FastIterator keys() throws java.io.IOException
java.io.IOException
public FastIterator values() throws java.io.IOException
java.io.IOException
public long getRecid()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |