Package io.usethesource.capsule.core
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 int
Fields 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) int
arity()
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 K
getKey
(int index) getKeyValueEntry
(int index) (package private) abstract PersistentTrieMap.AbstractMapNode
<K, V> getNode
(int index) (package private) abstract Object
getSlot
(int index) (package private) abstract V
getValue
(int index) (package private) abstract boolean
hasNodes()
(package private) abstract boolean
(package private) abstract boolean
hasSlots()
Deprecated.(package private) static final <T> boolean
isAllowedToEdit
(AtomicReference<?> x, AtomicReference<?> y) (package private) abstract int
abstract ArrayView
<PersistentTrieMap.AbstractMapNode<K, V>> (package private) Iterator
<? extends PersistentTrieMap.AbstractMapNode<K, V>> Deprecated.(package private) abstract int
(package private) int
size()
(package private) abstract int
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.usethesource.capsule.core.trie.MapNode
containsKey, equivalent, findByKey, removed, updated
Methods 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
-
AbstractMapNode
protected AbstractMapNode()
-
-
Method Details
-
isAllowedToEdit
-
dataArray
Description copied from interface:Node
Creates 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()
-