public class HTree extends Object
| Modifier and Type | Method and Description |
|---|---|
static HTree |
createInstance(RecordManager recman)
Create a persistent hashtable.
|
Object |
get(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(Object key,
Object value)
Associates the specified value with the specified key.
|
void |
remove(Object key)
Remove the value which is associated with the given key.
|
FastIterator |
values()
Returns an enumeration of the values contained in this
|
public static HTree createInstance(RecordManager recman) throws IOException
recman - Record manager used for persistence.IOExceptionpublic static HTree load(RecordManager recman, long root_recid) throws IOException
recman - RecordManager used to store the persistent hashtableroot_recid - Record id of the root directory of the HTreeIOExceptionpublic void put(Object key, Object value) throws IOException
key - key with which the specified value is to be assocated.value - value to be associated with the specified key.IOExceptionpublic Object get(Object key) throws IOException
null if there is not association for this key.key - key whose associated value is to be returnedIOExceptionpublic void remove(Object key) throws IOException
key - key whose associated value is to be removedIOExceptionpublic FastIterator keys() throws IOException
IOExceptionpublic FastIterator values() throws IOException
IOExceptionpublic long getRecid()
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.