Package io.grpc
Class PersistentHashArrayMappedTrie.CompressedIndex<K,V>
java.lang.Object
io.grpc.PersistentHashArrayMappedTrie.CompressedIndex<K,V>
- All Implemented Interfaces:
PersistentHashArrayMappedTrie.Node<K,
V>
- Enclosing class:
PersistentHashArrayMappedTrie
static final class PersistentHashArrayMappedTrie.CompressedIndex<K,V>
extends Object
implements PersistentHashArrayMappedTrie.Node<K,V>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
CompressedIndex
(int bitmap, PersistentHashArrayMappedTrie.Node<K, V>[] values, int size) -
Method Summary
Modifier and TypeMethodDescription(package private) static <K,
V> PersistentHashArrayMappedTrie.Node <K, V> combine
(PersistentHashArrayMappedTrie.Node<K, V> node1, int hash1, PersistentHashArrayMappedTrie.Node<K, V> node2, int hash2, int bitsConsumed) private int
compressedIndex
(int indexBit) private static int
indexBit
(int hash, int bitsConsumed) int
size()
toString()
private static int
uncompressedIndex
(int hash, int bitsConsumed)
-
Field Details
-
BITS
private static final int BITS- See Also:
-
BITS_MASK
private static final int BITS_MASK- See Also:
-
bitmap
final int bitmap -
values
-
size
private final int size
-
-
Constructor Details
-
CompressedIndex
-
-
Method Details
-
size
public int size()- Specified by:
size
in interfacePersistentHashArrayMappedTrie.Node<K,
V>
-
get
- Specified by:
get
in interfacePersistentHashArrayMappedTrie.Node<K,
V>
-
put
- Specified by:
put
in interfacePersistentHashArrayMappedTrie.Node<K,
V>
-
combine
static <K,V> PersistentHashArrayMappedTrie.Node<K,V> combine(PersistentHashArrayMappedTrie.Node<K, V> node1, int hash1, PersistentHashArrayMappedTrie.Node<K, V> node2, int hash2, int bitsConsumed) -
toString
-
compressedIndex
private int compressedIndex(int indexBit) -
uncompressedIndex
private static int uncompressedIndex(int hash, int bitsConsumed) -
indexBit
private static int indexBit(int hash, int bitsConsumed)
-