Class ImmutableListState<V>
- java.lang.Object
-
- org.apache.flink.queryablestate.client.state.ImmutableListState<V>
-
- All Implemented Interfaces:
org.apache.flink.api.common.state.AppendingState<V,Iterable<V>>,org.apache.flink.api.common.state.ListState<V>,org.apache.flink.api.common.state.MergingState<V,Iterable<V>>,org.apache.flink.api.common.state.State
public final class ImmutableListState<V> extends Object implements org.apache.flink.api.common.state.ListState<V>
A read-onlyListStatethat does not allow for modifications.This is the result returned when querying Flink's keyed state using the
Queryable State Clientand providing anListStateDescriptor.
-
-
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 voidadd(V value)voidaddAll(List<V> values)voidclear()static <V,T,S extends org.apache.flink.api.common.state.State>
ScreateState(org.apache.flink.api.common.state.StateDescriptor<S,T> stateDescriptor, byte[] serializedState)Iterable<V>get()voidupdate(List<V> values)
-
-
-
Field Detail
-
MODIFICATION_ATTEMPT_ERROR
protected static final UnsupportedOperationException MODIFICATION_ATTEMPT_ERROR
-
-
Method Detail
-
add
public void add(V value)
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.flink.api.common.state.State
-
update
public void update(List<V> values)
- Specified by:
updatein interfaceorg.apache.flink.api.common.state.ListState<V>
-
addAll
public void addAll(List<V> values)
- Specified by:
addAllin interfaceorg.apache.flink.api.common.state.ListState<V>
-
createState
public static <V,T,S extends org.apache.flink.api.common.state.State> S createState(org.apache.flink.api.common.state.StateDescriptor<S,T> stateDescriptor, byte[] serializedState) throws IOException- Throws:
IOException
-
-