|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.util.HashBase
org.h2.util.ValueHashMap<V>
V
- the value typepublic class ValueHashMap<V>
This hash map supports keys of type Value.
Field Summary |
---|
Fields inherited from class org.h2.util.HashBase |
---|
deletedCount, len, level, mask, size, zeroKey |
Method Summary | ||
---|---|---|
V |
get(Value key)
Get the value for this key. |
|
ObjectArray<Value> |
keys()
Get the list of keys. |
|
static
|
newInstance(DataHandler handler)
Create a new value hash map using the given data handler. |
|
void |
put(Value key,
V value)
Add or update a key value pair. |
|
protected void |
rehash(int newLevel)
Increase the size of the underlying table and re-distribute the elements. |
|
void |
remove(Value key)
Remove a key value pair. |
|
protected void |
reset(int newLevel)
Clear the map and reset the level to the specified value. |
|
ObjectArray<V> |
values()
Get the list of values. |
Methods inherited from class org.h2.util.HashBase |
---|
checkSizeRemove, getIndex, size |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> ValueHashMap<T> newInstance(DataHandler handler)
handler
- the data handler
protected void reset(int newLevel)
HashBase
reset
in class HashBase
newLevel
- the new levelprotected void rehash(int newLevel) throws java.sql.SQLException
HashBase
rehash
in class HashBase
newLevel
- the new level
java.sql.SQLException
public void put(Value key, V value) throws java.sql.SQLException
key
- the keyvalue
- the new value
java.sql.SQLException
public void remove(Value key) throws java.sql.SQLException
key
- the key
java.sql.SQLException
public V get(Value key) throws java.sql.SQLException
key
- the key
java.sql.SQLException
public ObjectArray<Value> keys()
public ObjectArray<V> values()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |