Class PersistentTrieMap.AbstractMapNode<K,V>
java.lang.Object
io.usethesource.capsule.core.PersistentTrieMap.AbstractMapNode<K,V>
- All Implemented Interfaces:
MapNode<K, V, PersistentTrieMap.AbstractMapNode<K,V>>, Node, Serializable
- Direct Known Subclasses:
PersistentTrieMap.CompactMapNode
- Enclosing class:
PersistentTrieMap<K,V>
protected abstract static class PersistentTrieMap.AbstractMapNode<K,V>
extends Object
implements MapNode<K, V, PersistentTrieMap.AbstractMapNode<K,V>>, Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long(package private) static final intFields inherited from interface Node
SIZE_EMPTY, SIZE_MORE_THAN_ONE, SIZE_ONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) intarity()The arity of this trie node (i.e.private <T> ArrayView<T> private <T> ArrayView<T> <T> ArrayView<T> dataArray(int category, int component) Creates an array abstraction for a subset of data stored in a node.(package private) abstract KgetKey(int index) getKeyValueEntry(int index) (package private) abstract PersistentTrieMap.AbstractMapNode<K, V> getNode(int index) (package private) abstract ObjectgetSlot(int index) (package private) abstract VgetValue(int index) (package private) abstract booleanhasNodes()(package private) abstract boolean(package private) abstract booleanhasSlots()Deprecated.(package private) static final <T> booleanisAllowedToEdit(AtomicReference<?> x, AtomicReference<?> y) (package private) abstract intabstract ArrayView<PersistentTrieMap.AbstractMapNode<K, V>> (package private) Iterator<? extends PersistentTrieMap.AbstractMapNode<K, V>> Deprecated.(package private) abstract int(package private) intsize()(package private) abstract intMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MapNode
containsKey, equivalent, findByKey, removed, updatedMethods inherited from interface Node
sizePredicate
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
TUPLE_LENGTH
static final int TUPLE_LENGTH- See Also:
-
-
Constructor Details
-
AbstractMapNode
protected AbstractMapNode()
-
-
Method Details
-
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. -
hasPayload
abstract boolean hasPayload() -
payloadArity
abstract int payloadArity() -
getKey
-
getValue
-
getKeyValueEntry
-
hasSlots
Deprecated. -
slotArity
abstract int slotArity() -
getSlot
-
arity
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()
-