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.StateMapEntry
s 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 boolean
equals(Object o)
K
getKey()
Returns the key of this entry.N
getNamespace()
Returns the namespace of this entry.S
getState()
Returns the state of this entry.int
hashCode()
void
setState(S value, int mapVersion)
String
toString()
-
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:StateEntry
Returns the key of this entry.- Specified by:
getKey
in interfaceStateEntry<K,N,S>
-
getNamespace
@Nonnull public N getNamespace()
Description copied from interface:StateEntry
Returns the namespace of this entry.- Specified by:
getNamespace
in interfaceStateEntry<K,N,S>
-
getState
@Nullable public S getState()
Description copied from interface:StateEntry
Returns the state of this entry.- Specified by:
getState
in interfaceStateEntry<K,N,S>
-
-