Inspired by popcnt-based compression seen in Ideal Hash Trees, Phil Bagwell (2000). The rest of the implementation is ignorant of/ignores the paper.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static interface |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static <K, V> V | get(PersistentHashArrayMappedTrie.
Returns the value with the specified key, or |
| pack-priv static <K, V> PersistentHashArrayMappedTrie. | put(PersistentHashArrayMappedTrie.
Returns a new trie where the key is set to the specified value. |
| PersistentHashArrayMappedTrie | back to summary |
|---|---|
| private PersistentHashArrayMappedTrie() | |
| get | back to summary |
|---|---|
| pack-priv static <K, V> V get(PersistentHashArrayMappedTrie. Returns the value with the specified key, or | |
| put | back to summary |
|---|---|
| pack-priv static <K, V> PersistentHashArrayMappedTrie. Returns a new trie where the key is set to the specified value. | |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public V | |
| private int | |
| public PersistentHashArrayMappedTrie. | put(K key, V value, int hash, int bitsConsumed)
Implements io. |
| public int | |
| public String |
| keys | back to summary |
|---|---|
| private final K[] keys | |
| values | back to summary |
|---|---|
| private final V[] values | |
| CollisionLeaf | back to summary |
|---|---|
pack-priv CollisionLeaf(K key1, V value1, K key2, V value2)
| |
| CollisionLeaf | back to summary |
|---|---|
| private CollisionLeaf(K[] keys, V[] values) | |
| get | back to summary |
|---|---|
| public V get(K key, int hash, int bitsConsumed) Implements io.
| |
| indexOfKey | back to summary |
|---|---|
| private int indexOfKey(K key) | |
| put | back to summary |
|---|---|
| public PersistentHashArrayMappedTrie. Implements io.
| |
| size | back to summary |
|---|---|
| public int size() Implements io.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | |
| private static final int | |
| private static final int | |
| private final int | |
| pack-priv final PersistentHashArrayMappedTrie. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static <K, V> PersistentHashArrayMappedTrie. | combine(PersistentHashArrayMappedTrie.
|
| private int | |
| public V | |
| private static int | |
| public PersistentHashArrayMappedTrie. | put(K key, V value, int hash, int bitsConsumed)
Implements io. |
| public int | |
| public String | |
| private static int |
| bitmap | back to summary |
|---|---|
| pack-priv final int bitmap | |
| BITS | back to summary |
|---|---|
| private static final int BITS | |
| BITS_MASK | back to summary |
|---|---|
| private static final int BITS_MASK | |
| size | back to summary |
|---|---|
| private final int size | |
| values | back to summary |
|---|---|
| pack-priv final PersistentHashArrayMappedTrie. | |
| CompressedIndex | back to summary |
|---|---|
| private CompressedIndex(int bitmap, PersistentHashArrayMappedTrie. | |
| combine | back to summary |
|---|---|
| pack-priv static <K, V> PersistentHashArrayMappedTrie. | |
| compressedIndex | back to summary |
|---|---|
| private int compressedIndex(int indexBit) | |
| get | back to summary |
|---|---|
| public V get(K key, int hash, int bitsConsumed) Implements io.
| |
| indexBit | back to summary |
|---|---|
| private static int indexBit(int hash, int bitsConsumed) | |
| put | back to summary |
|---|---|
| public PersistentHashArrayMappedTrie. Implements io.
| |
| size | back to summary |
|---|---|
| public int size() Implements io.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| uncompressedIndex | back to summary |
|---|---|
| private static int uncompressedIndex(int hash, int bitsConsumed) | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public V | |
| public PersistentHashArrayMappedTrie. | put(K key, V value, int hash, int bitsConsumed)
Implements io. |
| public int | |
| public String |
| Leaf | back to summary |
|---|---|
| public Leaf(K key, V value) | |
| get | back to summary |
|---|---|
| public V get(K key, int hash, int bitsConsumed) Implements io.
| |
| put | back to summary |
|---|---|
| public PersistentHashArrayMappedTrie. Implements io.
| |
| size | back to summary |
|---|---|
| public int size() Implements io.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Method and Description |
|---|---|
| public V | |
| public PersistentHashArrayMappedTrie. | |
| public int |
| get | back to summary |
|---|---|
| public V get(K key, int hash, int bitsConsumed) | |
| put | back to summary |
|---|---|
| public PersistentHashArrayMappedTrie. | |
| size | back to summary |
|---|---|
| public int size() | |