Class ImmutableValueState<V>
- java.lang.Object
-
- org.apache.flink.queryablestate.client.state.ImmutableValueState<V>
-
- All Implemented Interfaces:
org.apache.flink.api.common.state.State,org.apache.flink.api.common.state.ValueState<V>
public final class ImmutableValueState<V> extends Object implements org.apache.flink.api.common.state.ValueState<V>
A read-onlyValueStatethat does not allow for modifications.This is the result returned when querying Flink's keyed state using the
Queryable State Clientand providing anValueStateDescriptor.
-
-
Field Summary
Fields Modifier and Type Field Description protected static UnsupportedOperationExceptionMODIFICATION_ATTEMPT_ERROR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()static <V,S extends org.apache.flink.api.common.state.State>
ScreateState(org.apache.flink.api.common.state.StateDescriptor<S,V> stateDescriptor, byte[] serializedState)voidupdate(V newValue)Vvalue()
-
-
-
Field Detail
-
MODIFICATION_ATTEMPT_ERROR
protected static final UnsupportedOperationException MODIFICATION_ATTEMPT_ERROR
-
-
Method Detail
-
value
public V value()
- Specified by:
valuein interfaceorg.apache.flink.api.common.state.ValueState<V>
-
update
public void update(V newValue)
- Specified by:
updatein interfaceorg.apache.flink.api.common.state.ValueState<V>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.flink.api.common.state.State
-
createState
public static <V,S extends org.apache.flink.api.common.state.State> S createState(org.apache.flink.api.common.state.StateDescriptor<S,V> stateDescriptor, byte[] serializedState) throws IOException- Throws:
IOException
-
-