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