Class CopyOnWriteStateMap.StateMapEntry<K,N,S>
- java.lang.Object
-
- org.apache.flink.runtime.state.heap.CopyOnWriteStateMap.StateMapEntry<K,N,S>
-
- Type Parameters:
K- type of key.N- type of namespace.S- type of state.
- All Implemented Interfaces:
StateEntry<K,N,S>
- Enclosing class:
- CopyOnWriteStateMap<K,N,S>
@VisibleForTesting protected static class CopyOnWriteStateMap.StateMapEntry<K,N,S> extends Object implements StateEntry<K,N,S>
One entry in theCopyOnWriteStateMap. This is a triplet of key, namespace, and state. Thereby, key and namespace together serve as a composite key for the state. This class also contains some management meta data for copy-on-write, a pointer to link otherCopyOnWriteStateMap.StateMapEntrys to a list, and cached hash code.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.runtime.state.StateEntry
StateEntry.SimpleStateEntry<K,N,S>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)KgetKey()Returns the key of this entry.NgetNamespace()Returns the namespace of this entry.SgetState()Returns the state of this entry.inthashCode()voidsetState(S value, int mapVersion)StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.flink.runtime.state.StateEntry
filterOrTransform
-
-
-
-
Method Detail
-
setState
public final void setState(@Nullable S value, int mapVersion)
-
getKey
@Nonnull public K getKey()
Description copied from interface:StateEntryReturns the key of this entry.- Specified by:
getKeyin interfaceStateEntry<K,N,S>
-
getNamespace
@Nonnull public N getNamespace()
Description copied from interface:StateEntryReturns the namespace of this entry.- Specified by:
getNamespacein interfaceStateEntry<K,N,S>
-
getState
@Nullable public S getState()
Description copied from interface:StateEntryReturns the state of this entry.- Specified by:
getStatein interfaceStateEntry<K,N,S>
-
-