| java.lang.Object org.h2.util.HashBase
All known Subclasses: org.h2.util.ValueHashMap, org.h2.util.IntIntHashMap,
HashBase | abstract public class HashBase (Code) | | The base for other hash classes.
|
Field Summary | |
protected int | deletedCount The number of deleted slots. | protected int | len The number of slots in the table. | protected int | level The level. | protected int | mask The bit mask to get the index from the hash code. | protected int | size The number of occupied slots, excluding the zero key (if any). | protected boolean | zeroKey Whether the zero key is used. |
Method Summary | |
protected void | checkSizePut() | protected void | checkSizeRemove() | protected int | getIndex(int hash) | abstract protected void | rehash(int newLevel) Increase the size of the underlying table and re-distribute the elements. | protected void | reset(int newLevel) | public int | size() |
deletedCount | protected int deletedCount(Code) | | The number of deleted slots.
|
len | protected int len(Code) | | The number of slots in the table.
|
level | protected int level(Code) | | The level. The number of slots is 2 ^ level.
|
mask | protected int mask(Code) | | The bit mask to get the index from the hash code.
|
size | protected int size(Code) | | The number of occupied slots, excluding the zero key (if any).
|
zeroKey | protected boolean zeroKey(Code) | | Whether the zero key is used.
|
HashBase | public HashBase()(Code) | | |
getIndex | protected int getIndex(int hash)(Code) | | |
rehash | abstract protected void rehash(int newLevel) throws SQLException(Code) | | Increase the size of the underlying table and re-distribute the elements.
Parameters: newLevel - the new level |
reset | protected void reset(int newLevel)(Code) | | |
|
|