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,java.io.Serializable
- Direct Known Subclasses:
PersistentTrieMap.CompactMapNode
- Enclosing class:
- PersistentTrieMap<K,V>
protected abstract static class PersistentTrieMap.AbstractMapNode<K,V> extends java.lang.Object implements MapNode<K,V,PersistentTrieMap.AbstractMapNode<K,V>>, java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUID(package private) static intTUPLE_LENGTH-
Fields inherited from interface io.usethesource.capsule.core.trie.Node
SIZE_EMPTY, SIZE_MORE_THAN_ONE, SIZE_ONE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractMapNode()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description (package private) intarity()The arity of this trie node (i.e.private <T> ArrayView<T>categoryArrayView0()private <T> ArrayView<T>categoryArrayView1()<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)(package private) abstract java.util.Map.Entry<K,V>getKeyValueEntry(int index)(package private) abstract PersistentTrieMap.AbstractMapNode<K,V>getNode(int index)(package private) abstract java.lang.ObjectgetSlot(int index)(package private) abstract VgetValue(int index)(package private) abstract booleanhasNodes()(package private) abstract booleanhasPayload()(package private) abstract booleanhasSlots()Deprecated.(package private) static <T> booleanisAllowedToEdit(java.util.concurrent.atomic.AtomicReference<?> x, java.util.concurrent.atomic.AtomicReference<?> y)(package private) abstract intnodeArity()abstract ArrayView<PersistentTrieMap.AbstractMapNode<K,V>>nodeArray()(package private) java.util.Iterator<? extends PersistentTrieMap.AbstractMapNode<K,V>>nodeIterator()Deprecated.(package private) abstract intpayloadArity()(package private) intsize()(package private) abstract intslotArity()-
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 Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
TUPLE_LENGTH
static final int TUPLE_LENGTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
isAllowedToEdit
static final <T> boolean isAllowedToEdit(java.util.concurrent.atomic.AtomicReference<?> x, java.util.concurrent.atomic.AtomicReference<?> y)
-
dataArray
public <T> ArrayView<T> dataArray(int category, int component)
Description copied from interface:NodeCreates an array abstraction for a subset of data stored in a node.
-
categoryArrayView0
private <T> ArrayView<T> categoryArrayView0()
-
categoryArrayView1
private <T> ArrayView<T> categoryArrayView1()
-
nodeArray
public abstract ArrayView<PersistentTrieMap.AbstractMapNode<K,V>> nodeArray()
-
hasNodes
abstract boolean hasNodes()
-
nodeArity
abstract int nodeArity()
-
getNode
abstract PersistentTrieMap.AbstractMapNode<K,V> getNode(int index)
-
nodeIterator
@Deprecated java.util.Iterator<? extends PersistentTrieMap.AbstractMapNode<K,V>> nodeIterator()
Deprecated.
-
hasPayload
abstract boolean hasPayload()
-
payloadArity
abstract int payloadArity()
-
getKey
abstract K getKey(int index)
-
getValue
abstract V getValue(int index)
-
hasSlots
@Deprecated abstract boolean hasSlots()
Deprecated.
-
slotArity
abstract int slotArity()
-
getSlot
abstract java.lang.Object getSlot(int index)
-
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()
-
-