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