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:
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>>
,ListState<T>
,MergingState<T,Iterable<T>>
,State
public interface InternalListState<K,N,T> extends InternalMergingState<K,N,T,List<T>,Iterable<T>>, ListState<T>
The peer to theListState
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addAll(List<T> values)
Updates the operator state accessible byAppendingState.get()
by adding the given values to existing list of values.void
update(List<T> values)
Updates 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, get
-
Methods inherited from interface org.apache.flink.runtime.state.internal.InternalAppendingState
getInternal, updateInternal
-
Methods inherited from interface org.apache.flink.runtime.state.internal.InternalKvState
getKeySerializer, getNamespaceSerializer, getSerializedValue, getStateIncrementalVisitor, getValueSerializer, setCurrentNamespace
-
Methods inherited from interface org.apache.flink.runtime.state.internal.InternalMergingState
mergeNamespaces
-
-
-
-
Method Detail
-
update
void update(List<T> values) throws Exception
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
void addAll(List<T> values) throws Exception
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.
-
-