K - The type of the key.N - The type of the namespace.V - The type of the value.public class MemValueState<K,N,V> extends AbstractMemState<K,N,V,org.apache.flink.api.common.state.ValueState<V>,org.apache.flink.api.common.state.ValueStateDescriptor<V>> implements org.apache.flink.api.common.state.ValueState<V>
| Modifier and Type | Class and Description |
|---|---|
static class |
MemValueState.Snapshot<K,N,V> |
currentKey, currentNamespace, currentNSState, keySerializer, namespaceSerializer, state, stateDesc, stateSerializer| Constructor and Description |
|---|
MemValueState(org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer,
org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer,
org.apache.flink.api.common.state.ValueStateDescriptor<V> stateDesc) |
MemValueState(org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer,
org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer,
org.apache.flink.api.common.state.ValueStateDescriptor<V> stateDesc,
HashMap<N,Map<K,V>> state) |
| Modifier and Type | Method and Description |
|---|---|
KvStateSnapshot<K,N,org.apache.flink.api.common.state.ValueState<V>,org.apache.flink.api.common.state.ValueStateDescriptor<V>,MemoryStateBackend> |
createHeapSnapshot(byte[] bytes) |
void |
update(V value) |
V |
value() |
snapshotclear, dispose, getKeySerializer, getNamespaceSerializer, setCurrentKey, setCurrentNamespace, sizepublic MemValueState(org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer, org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer, org.apache.flink.api.common.state.ValueStateDescriptor<V> stateDesc)
public V value()
public void update(V value)
public KvStateSnapshot<K,N,org.apache.flink.api.common.state.ValueState<V>,org.apache.flink.api.common.state.ValueStateDescriptor<V>,MemoryStateBackend> createHeapSnapshot(byte[] bytes)
createHeapSnapshot in class AbstractMemState<K,N,V,org.apache.flink.api.common.state.ValueState<V>,org.apache.flink.api.common.state.ValueStateDescriptor<V>>Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.