Package io.usethesource.capsule.core
Class PersistentTrieSetMultimap.AbstractSetMultimapNode<K,V>
java.lang.Object
io.usethesource.capsule.core.PersistentTrieSetMultimap.AbstractSetMultimapNode<K,V>
- All Implemented Interfaces:
MultimapNode<K,,V, Set.Immutable<V>, PersistentTrieSetMultimap.AbstractSetMultimapNode<K, V>> Node,Serializable
- Direct Known Subclasses:
PersistentTrieSetMultimap.CompactSetMultimapNode
- Enclosing class:
PersistentTrieSetMultimap<K,V>
protected abstract static class PersistentTrieSetMultimap.AbstractSetMultimapNode<K,V>
extends Object
implements MultimapNode<K,V,Set.Immutable<V>,PersistentTrieSetMultimap.AbstractSetMultimapNode<K,V>>, Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long(package private) static final intFields 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) abstract intarity()The arity of this trie node (i.e.private <T> ArrayView<T> categoryArrayView0(int component) private <T> ArrayView<T> categoryArrayView1(int component) <T> ArrayView<T> dataArray(int category, int component) Creates an array abstraction for a subset of data stored in a node.(package private) abstract KgetCollectionKey(int index) (package private) abstract Set.Immutable<V> getCollectionValue(int index) (package private) abstract PersistentTrieSetMultimap.AbstractSetMultimapNode<K, V> getNode(int index) (package private) abstract KgetSingletonKey(int index) (package private) abstract VgetSingletonValue(int index) (package private) abstract ObjectgetSlot(int index) (package private) abstract booleanhasNodes()(package private) abstract boolean(package private) abstract booleanhasSlots()(package private) static final booleanisAllowedToEdit(AtomicReference<?> x, AtomicReference<?> y) final booleanmustUnbox(Set.Immutable<V> values) (package private) abstract int(package private) Iterator<? extends PersistentTrieSetMultimap.AbstractSetMultimapNode<K, V>> Deprecated.(package private) abstract int(package private) intsize()(package private) abstract intfinal Vunbox(Set.Immutable<V> values) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.usethesource.capsule.core.trie.MultimapNode
containsKey, containsTuple, copyAndUpdateBitmaps, findByKey, inserted, insertedMultiple, insertedSingle, patternOfSingleton, removed, removed, typeOfSingleton, updated, updatedMultiple, updatedSingleMethods inherited from interface io.usethesource.capsule.core.trie.Node
sizePredicate
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
TUPLE_LENGTH
static final int TUPLE_LENGTH- See Also:
-
-
Constructor Details
-
AbstractSetMultimapNode
protected AbstractSetMultimapNode()
-
-
Method Details
-
mustUnbox
- Specified by:
mustUnboxin interfaceMultimapNode<K,V, Set.Immutable<V>, PersistentTrieSetMultimap.AbstractSetMultimapNode<K, V>>
-
unbox
- Specified by:
unboxin interfaceMultimapNode<K,V, Set.Immutable<V>, PersistentTrieSetMultimap.AbstractSetMultimapNode<K, V>>
-
isAllowedToEdit
-
dataArray
Description copied from interface:NodeCreates an array abstraction for a subset of data stored in a node. -
categoryArrayView0
-
categoryArrayView1
-
nodeArray
-
hasNodes
abstract boolean hasNodes() -
nodeArity
abstract int nodeArity() -
getNode
-
nodeIterator
@Deprecated Iterator<? extends PersistentTrieSetMultimap.AbstractSetMultimapNode<K,V>> nodeIterator()Deprecated. -
hasPayload
-
payloadArity
-
getSingletonKey
-
getSingletonValue
-
getCollectionKey
-
getCollectionValue
-
hasSlots
abstract boolean hasSlots() -
slotArity
abstract int slotArity() -
getSlot
-
arity
abstract int arity()The arity of this trie node (i.e. number of values and nodes stored on this level).- Returns:
- sum of nodes and values stored within
-
size
int size()
-