Interface InternalListState<K,N,T>
- Type Parameters:
K- The type of key the state is associated toN- The type of the namespaceT- The type of elements in the list
- All Superinterfaces:
org.apache.flink.api.common.state.AppendingState<T,,Iterable<T>> InternalAppendingState<K,,N, T, List<T>, Iterable<T>> InternalKvState<K,,N, List<T>> InternalMergingState<K,,N, T, List<T>, Iterable<T>> org.apache.flink.api.common.state.ListState<T>,org.apache.flink.api.common.state.MergingState<T,,Iterable<T>> org.apache.flink.api.common.state.State
public interface InternalListState<K,N,T>
extends InternalMergingState<K,N,T,List<T>,Iterable<T>>, org.apache.flink.api.common.state.ListState<T>
The peer to the
ListState in the internal state type hierarchy.
See InternalKvState for a description of the internal state hierarchy.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.runtime.state.internal.InternalKvState
InternalKvState.StateIncrementalVisitor<K,N, V> -
Method Summary
Modifier and TypeMethodDescriptionvoidUpdates the operator state accessible byAppendingState.get()by adding the given values to existing list of values.voidUpdates the operator state accessible byAppendingState.get()by updating existing values to the given list of values.Methods inherited from interface org.apache.flink.api.common.state.AppendingState
add, getMethods inherited from interface org.apache.flink.runtime.state.internal.InternalAppendingState
getInternal, updateInternalMethods inherited from interface org.apache.flink.runtime.state.internal.InternalKvState
getKeySerializer, getNamespaceSerializer, getSerializedValue, getStateIncrementalVisitor, getValueSerializer, setCurrentNamespaceMethods inherited from interface org.apache.flink.runtime.state.internal.InternalMergingState
mergeNamespacesMethods inherited from interface org.apache.flink.api.common.state.State
clear
-
Method Details
-
update
Updates the operator state accessible byAppendingState.get()by updating existing values to the given list of values. The next timeAppendingState.get()is called (for the same state partition) the returned state will represent the updated list.If an empty list is passed in, the state value will be null
Null value passed in or any null value in list is not allowed.
-
addAll
Updates the operator state accessible byAppendingState.get()by adding the given values to existing list of values. The next timeAppendingState.get()is called (for the same state partition) the returned state will represent the updated list.If an empty list is passed in, the state value remains unchanged
Null value passed in or any null value in list is not allowed.
-