Package io.usethesource.capsule.core
Class PersistentTrieSetMultimap.AbstractHashCollisionNode<K,V>
java.lang.Object
io.usethesource.capsule.core.PersistentTrieSetMultimap.AbstractSetMultimapNode<K,V>
io.usethesource.capsule.core.PersistentTrieSetMultimap.CompactSetMultimapNode<K,V>
io.usethesource.capsule.core.PersistentTrieSetMultimap.AbstractHashCollisionNode<K,V>
- All Implemented Interfaces:
MultimapNode<K,,V, Set.Immutable<V>, PersistentTrieSetMultimap.AbstractSetMultimapNode<K, V>> Node,Serializable
- Direct Known Subclasses:
PersistentTrieSetMultimap.HashCollisionNode
- Enclosing class:
PersistentTrieSetMultimap<K,V>
private abstract static class PersistentTrieSetMultimap.AbstractHashCollisionNode<K,V>
extends PersistentTrieSetMultimap.CompactSetMultimapNode<K,V>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final RuntimeExceptionprivate static final Supplier<RuntimeException> Fields inherited from class io.usethesource.capsule.core.PersistentTrieSetMultimap.CompactSetMultimapNode
BIT_PARTITION_MASK, BIT_PARTITION_SIZE, EMPTY_NODE, HASH_CODE_LENGTHFields inherited from class io.usethesource.capsule.core.PersistentTrieSetMultimap.AbstractSetMultimapNode
TUPLE_LENGTHFields inherited from interface io.usethesource.capsule.core.trie.Node
SIZE_EMPTY, SIZE_MORE_THAN_ONE, SIZE_ONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) intbitmap(int category) (package private) PersistentTrieSetMultimap.CompactSetMultimapNode<K, V> canonicalize(AtomicReference<Thread> mutator, int keyHash, int shift) (package private) intcollMap()(package private) PersistentTrieSetMultimap.CompactSetMultimapNode<K, V> copyAndInsertCollection(AtomicReference<Thread> mutator, int bitpos, K key, Set.Immutable<V> values) (package private) PersistentTrieSetMultimap.CompactSetMultimapNode<K, V> copyAndInsertSingleton(AtomicReference<Thread> mutator, int bitpos, K key, V val) (package private) PersistentTrieSetMultimap.CompactSetMultimapNode<K, V> copyAndMigrateFromCollectionToNode(AtomicReference<Thread> mutator, int bitpos, PersistentTrieSetMultimap.AbstractSetMultimapNode<K, V> node) (package private) PersistentTrieSetMultimap.CompactSetMultimapNode<K, V> copyAndMigrateFromCollectionToSingleton(AtomicReference<Thread> mutator, int bitpos, K key, V val) (package private) PersistentTrieSetMultimap.CompactSetMultimapNode<K, V> copyAndMigrateFromNodeToCollection(AtomicReference<Thread> mutator, int bitpos, PersistentTrieSetMultimap.AbstractSetMultimapNode<K, V> node) (package private) PersistentTrieSetMultimap.CompactSetMultimapNode<K, V> copyAndMigrateFromNodeToSingleton(AtomicReference<Thread> mutator, int bitpos, PersistentTrieSetMultimap.AbstractSetMultimapNode<K, V> node) (package private) PersistentTrieSetMultimap.CompactSetMultimapNode<K, V> copyAndMigrateFromSingletonToCollection(AtomicReference<Thread> mutator, int bitpos, K key, Set.Immutable<V> valColl) (package private) PersistentTrieSetMultimap.CompactSetMultimapNode<K, V> copyAndMigrateFromSingletonToNode(AtomicReference<Thread> mutator, int bitpos, PersistentTrieSetMultimap.AbstractSetMultimapNode<K, V> node) (package private) PersistentTrieSetMultimap.CompactSetMultimapNode<K, V> copyAndRemoveCollection(AtomicReference<Thread> mutator, int bitpos) (package private) PersistentTrieSetMultimap.CompactSetMultimapNode<K, V> copyAndRemoveSingleton(AtomicReference<Thread> mutator, int bitpos) (package private) PersistentTrieSetMultimap.CompactSetMultimapNode<K, V> copyAndSetCollectionValue(AtomicReference<Thread> mutator, int bitpos, Set.Immutable<V> valColl) (package private) PersistentTrieSetMultimap.CompactSetMultimapNode<K, V> copyAndSetNode(AtomicReference<Thread> mutator, int bitpos, PersistentTrieSetMultimap.AbstractSetMultimapNode<K, V> node) (package private) PersistentTrieSetMultimap.CompactSetMultimapNode<K, V> copyAndSetSingletonValue(AtomicReference<Thread> mutator, int bitpos, V val) copyAndUpdateBitmaps(AtomicReference<Thread> mutator, int rawMap1, int rawMap2) (package private) intdataMap()(package private) intnodeMap()(package private) static final <K,V, VS extends Set.Immutable<V>>
PersistentTrieSetMultimap.AbstractHashCollisionNode<K, V> of(int hash, K key0, VS valColl0, K key1, VS valColl1) (package private) intrawMap1()(package private) intrawMap2()Methods inherited from class io.usethesource.capsule.core.PersistentTrieSetMultimap.CompactSetMultimapNode
arity, arity, bitpos, collIndex, containsKey, containsTuple, dataIndex, findByKey, getNode, index, index, insertedMultiple, insertedSingle, mask, mergeCollectionAndSingletonPairs, mergeTwoCollectionPairs, mergeTwoSingletonPairs, nodeIndex, nodeInvariant, nodeOf, nodeOf, nodeOf, recoverMask, removed, removed, toString, updated, updatedMultiple, updatedSingleMethods inherited from class io.usethesource.capsule.core.PersistentTrieSetMultimap.AbstractSetMultimapNode
dataArray, getCollectionKey, getCollectionValue, getSingletonKey, getSingletonValue, getSlot, hasNodes, hasPayload, hasSlots, isAllowedToEdit, mustUnbox, nodeArity, nodeArray, nodeIterator, payloadArity, size, slotArity, unboxMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.usethesource.capsule.core.trie.MultimapNode
copyAndUpdateBitmaps, inserted, patternOfSingletonMethods inherited from interface io.usethesource.capsule.core.trie.Node
sizePredicate
-
Field Details
-
UOE_BOILERPLATE
-
UOE_FACTORY
-
-
Constructor Details
-
AbstractHashCollisionNode
private AbstractHashCollisionNode()
-
-
Method Details
-
of
static final <K,V, PersistentTrieSetMultimap.AbstractHashCollisionNode<K,VS extends Set.Immutable<V>> V> of(int hash, K key0, VS valColl0, K key1, VS valColl1) -
bitmap
int bitmap(int category) - Specified by:
bitmapin classPersistentTrieSetMultimap.CompactSetMultimapNode<K,V>
-
dataMap
int dataMap()- Specified by:
dataMapin classPersistentTrieSetMultimap.CompactSetMultimapNode<K,V>
-
collMap
int collMap()- Specified by:
collMapin classPersistentTrieSetMultimap.CompactSetMultimapNode<K,V>
-
nodeMap
int nodeMap()- Specified by:
nodeMapin classPersistentTrieSetMultimap.CompactSetMultimapNode<K,V>
-
rawMap1
int rawMap1()- Specified by:
rawMap1in classPersistentTrieSetMultimap.CompactSetMultimapNode<K,V>
-
rawMap2
int rawMap2()- Specified by:
rawMap2in classPersistentTrieSetMultimap.CompactSetMultimapNode<K,V>
-
copyAndUpdateBitmaps
public PersistentTrieSetMultimap.CompactSetMultimapNode<K,V> copyAndUpdateBitmaps(AtomicReference<Thread> mutator, int rawMap1, int rawMap2) -
copyAndSetSingletonValue
PersistentTrieSetMultimap.CompactSetMultimapNode<K,V> copyAndSetSingletonValue(AtomicReference<Thread> mutator, int bitpos, V val) - Specified by:
copyAndSetSingletonValuein classPersistentTrieSetMultimap.CompactSetMultimapNode<K,V>
-
copyAndSetCollectionValue
PersistentTrieSetMultimap.CompactSetMultimapNode<K,V> copyAndSetCollectionValue(AtomicReference<Thread> mutator, int bitpos, Set.Immutable<V> valColl) - Specified by:
copyAndSetCollectionValuein classPersistentTrieSetMultimap.CompactSetMultimapNode<K,V>
-
copyAndSetNode
PersistentTrieSetMultimap.CompactSetMultimapNode<K,V> copyAndSetNode(AtomicReference<Thread> mutator, int bitpos, PersistentTrieSetMultimap.AbstractSetMultimapNode<K, V> node) - Specified by:
copyAndSetNodein classPersistentTrieSetMultimap.CompactSetMultimapNode<K,V>
-
copyAndInsertSingleton
PersistentTrieSetMultimap.CompactSetMultimapNode<K,V> copyAndInsertSingleton(AtomicReference<Thread> mutator, int bitpos, K key, V val) - Specified by:
copyAndInsertSingletonin classPersistentTrieSetMultimap.CompactSetMultimapNode<K,V>
-
copyAndInsertCollection
PersistentTrieSetMultimap.CompactSetMultimapNode<K,V> copyAndInsertCollection(AtomicReference<Thread> mutator, int bitpos, K key, Set.Immutable<V> values) - Specified by:
copyAndInsertCollectionin classPersistentTrieSetMultimap.CompactSetMultimapNode<K,V>
-
copyAndMigrateFromSingletonToCollection
PersistentTrieSetMultimap.CompactSetMultimapNode<K,V> copyAndMigrateFromSingletonToCollection(AtomicReference<Thread> mutator, int bitpos, K key, Set.Immutable<V> valColl) - Specified by:
copyAndMigrateFromSingletonToCollectionin classPersistentTrieSetMultimap.CompactSetMultimapNode<K,V>
-
copyAndRemoveSingleton
PersistentTrieSetMultimap.CompactSetMultimapNode<K,V> copyAndRemoveSingleton(AtomicReference<Thread> mutator, int bitpos) - Specified by:
copyAndRemoveSingletonin classPersistentTrieSetMultimap.CompactSetMultimapNode<K,V>
-
copyAndRemoveCollection
PersistentTrieSetMultimap.CompactSetMultimapNode<K,V> copyAndRemoveCollection(AtomicReference<Thread> mutator, int bitpos) - Specified by:
copyAndRemoveCollectionin classPersistentTrieSetMultimap.CompactSetMultimapNode<K,V>
-
copyAndMigrateFromSingletonToNode
PersistentTrieSetMultimap.CompactSetMultimapNode<K,V> copyAndMigrateFromSingletonToNode(AtomicReference<Thread> mutator, int bitpos, PersistentTrieSetMultimap.AbstractSetMultimapNode<K, V> node) - Specified by:
copyAndMigrateFromSingletonToNodein classPersistentTrieSetMultimap.CompactSetMultimapNode<K,V>
-
copyAndMigrateFromNodeToSingleton
PersistentTrieSetMultimap.CompactSetMultimapNode<K,V> copyAndMigrateFromNodeToSingleton(AtomicReference<Thread> mutator, int bitpos, PersistentTrieSetMultimap.AbstractSetMultimapNode<K, V> node) - Specified by:
copyAndMigrateFromNodeToSingletonin classPersistentTrieSetMultimap.CompactSetMultimapNode<K,V>
-
copyAndMigrateFromCollectionToNode
PersistentTrieSetMultimap.CompactSetMultimapNode<K,V> copyAndMigrateFromCollectionToNode(AtomicReference<Thread> mutator, int bitpos, PersistentTrieSetMultimap.AbstractSetMultimapNode<K, V> node) - Specified by:
copyAndMigrateFromCollectionToNodein classPersistentTrieSetMultimap.CompactSetMultimapNode<K,V>
-
copyAndMigrateFromNodeToCollection
PersistentTrieSetMultimap.CompactSetMultimapNode<K,V> copyAndMigrateFromNodeToCollection(AtomicReference<Thread> mutator, int bitpos, PersistentTrieSetMultimap.AbstractSetMultimapNode<K, V> node) - Specified by:
copyAndMigrateFromNodeToCollectionin classPersistentTrieSetMultimap.CompactSetMultimapNode<K,V>
-
copyAndMigrateFromCollectionToSingleton
PersistentTrieSetMultimap.CompactSetMultimapNode<K,V> copyAndMigrateFromCollectionToSingleton(AtomicReference<Thread> mutator, int bitpos, K key, V val) - Specified by:
copyAndMigrateFromCollectionToSingletonin classPersistentTrieSetMultimap.CompactSetMultimapNode<K,V>
-
typeOfSingleton
-
canonicalize
PersistentTrieSetMultimap.CompactSetMultimapNode<K,V> canonicalize(AtomicReference<Thread> mutator, int keyHash, int shift) - Specified by:
canonicalizein classPersistentTrieSetMultimap.CompactSetMultimapNode<K,V>
-