K - The type of the key.N - The type of the namespace.V - The type of the values in the list state.public class MemListState<K,N,V> extends AbstractMemState<K,N,ArrayList<V>,org.apache.flink.api.common.state.ListState<V>,org.apache.flink.api.common.state.ListStateDescriptor<V>> implements org.apache.flink.api.common.state.ListState<V>
ListState that is snapshotted
into a serialized memory copy.| Modifier and Type | Class and Description |
|---|---|
static class |
MemListState.Snapshot<K,N,V> |
currentKey, currentNamespace, currentNSState, keySerializer, namespaceSerializer, state, stateDesc, stateSerializer| Constructor and Description |
|---|
MemListState(org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer,
org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer,
org.apache.flink.api.common.state.ListStateDescriptor<V> stateDesc) |
MemListState(org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer,
org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer,
org.apache.flink.api.common.state.ListStateDescriptor<V> stateDesc,
HashMap<N,Map<K,ArrayList<V>>> state) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(V value) |
KvStateSnapshot<K,N,org.apache.flink.api.common.state.ListState<V>,org.apache.flink.api.common.state.ListStateDescriptor<V>,MemoryStateBackend> |
createHeapSnapshot(byte[] bytes) |
Iterable<V> |
get() |
snapshotclear, dispose, getKeySerializer, getNamespaceSerializer, setCurrentKey, setCurrentNamespace, sizepublic MemListState(org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer, org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer, org.apache.flink.api.common.state.ListStateDescriptor<V> stateDesc)
public void add(V value)
public KvStateSnapshot<K,N,org.apache.flink.api.common.state.ListState<V>,org.apache.flink.api.common.state.ListStateDescriptor<V>,MemoryStateBackend> createHeapSnapshot(byte[] bytes)
createHeapSnapshot in class AbstractMemState<K,N,ArrayList<V>,org.apache.flink.api.common.state.ListState<V>,org.apache.flink.api.common.state.ListStateDescriptor<V>>Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.