Class ImmutableMapState<K,V>
java.lang.Object
org.apache.flink.queryablestate.client.state.ImmutableMapState<K,V>
- All Implemented Interfaces:
org.apache.flink.api.common.state.MapState<K,,V> org.apache.flink.api.common.state.State
public final class ImmutableMapState<K,V>
extends Object
implements org.apache.flink.api.common.state.MapState<K,V>
A read-only
MapState that does not allow for modifications.
This is the result returned when querying Flink's keyed state using the Queryable State Client and providing
an MapStateDescriptor.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleanstatic <K,V, T, S extends org.apache.flink.api.common.state.State>
ScreateState(org.apache.flink.api.common.state.StateDescriptor<S, T> stateDescriptor, byte[] serializedState) entries()Returns all the mappings in the state in aCollections.unmodifiableSet(Set).booleanisEmpty()iterator()Iterates over all the mappings in the state.keys()Returns all the keys in the state in aCollections.unmodifiableSet(Set).voidvoidvoidvalues()Returns all the values in the state in aCollections.unmodifiableCollection(Collection).
-
Field Details
-
MODIFICATION_ATTEMPT_ERROR
-
-
Method Details
-
get
-
put
-
putAll
-
remove
-
contains
-
entries
Returns all the mappings in the state in aCollections.unmodifiableSet(Set). -
keys
Returns all the keys in the state in aCollections.unmodifiableSet(Set). -
values
Returns all the values in the state in aCollections.unmodifiableCollection(Collection). -
iterator
Iterates over all the mappings in the state. The iterator cannot remove elements. -
isEmpty
public boolean isEmpty() -
clear
public void clear()- Specified by:
clearin interfaceorg.apache.flink.api.common.state.State
-
createState
public static <K,V, S createStateT, S extends org.apache.flink.api.common.state.State> (org.apache.flink.api.common.state.StateDescriptor<S, T> stateDescriptor, byte[] serializedState) throws IOException- Throws:
IOException
-