| java.lang.Object jdbm.htree.HTree
HTree | public class HTree (Code) | | 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.
author: Alex Boisvert version: $Id: HTree.java,v 1.3 2005/06/25 23:12:32 doomdark Exp $ |
createInstance | public static HTree createInstance(RecordManager recman) throws IOException(Code) | | Create a persistent hashtable.
Parameters: recman - Record manager used for persistence. |
get | public synchronized Object get(Object key) throws IOException(Code) | | Returns the value which is associated with the given key. Returns
null if there is not association for this key.
Parameters: key - key whose associated value is to be returned |
getRecid | public long getRecid()(Code) | | Get the record identifier used to load this hashtable.
|
load | public static HTree load(RecordManager recman, long root_recid) throws IOException(Code) | | Load a persistent hashtable
Parameters: recman - RecordManager used to store the persistent hashtable Parameters: root_recid - Record id of the root directory of the HTree |
put | public synchronized void put(Object key, Object value) throws IOException(Code) | | Associates the specified value with the specified key.
Parameters: key - key with which the specified value is to be assocated. Parameters: value - value to be associated with the specified key. |
remove | public synchronized void remove(Object key) throws IOException(Code) | | Remove the value which is associated with the given key. If the
key does not exist, this method simply ignores the operation.
Parameters: key - key whose associated value is to be removed |
|
|