K - The type of the key.N - The type of the namespace.V - The type of value that the state state stores.public class RocksDBValueState<K,N,V> extends AbstractRocksDBState<K,N,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>
ValueState implementation that stores state in RocksDB.backend, columnFamily| Constructor and Description |
|---|
RocksDBValueState(org.rocksdb.ColumnFamilyHandle columnFamily,
org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer,
org.apache.flink.api.common.state.ValueStateDescriptor<V> stateDesc,
RocksDBStateBackend backend)
Creates a new
RocksDBValueState. |
| Modifier and Type | Method and Description |
|---|---|
void |
update(V value) |
V |
value() |
clear, dispose, setCurrentKey, setCurrentNamespace, snapshot, writeKeyAndNamespacepublic RocksDBValueState(org.rocksdb.ColumnFamilyHandle columnFamily,
org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer,
org.apache.flink.api.common.state.ValueStateDescriptor<V> stateDesc,
RocksDBStateBackend backend)
RocksDBValueState.namespaceSerializer - The serializer for the namespace.stateDesc - The state identifier for the state. This contains name
and can create a default state value.public V value()
public void update(V value) throws IOException
update in interface org.apache.flink.api.common.state.OperatorState<V>update in interface org.apache.flink.api.common.state.ValueState<V>IOExceptionCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.