K - The type of the key.N - The type of the namespace.T - The type of the values that can be folded into the state.ACC - The type of the value in the folding state.@Deprecated public class RocksDBFoldingState<K,N,T,ACC> extends AbstractRocksDBState<K,N,ACC,org.apache.flink.api.common.state.FoldingState<T,ACC>> implements org.apache.flink.runtime.state.internal.InternalFoldingState<K,N,T,ACC>
FoldingState implementation that stores state in RocksDB.backend, columnFamily, defaultValue, keySerializationDataOutputView, keySerializationStream, writeOptions| Constructor and Description |
|---|
RocksDBFoldingState(org.rocksdb.ColumnFamilyHandle columnFamily,
org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer,
org.apache.flink.api.common.typeutils.TypeSerializer<ACC> valueSerializer,
ACC defaultValue,
org.apache.flink.api.common.functions.FoldFunction<T,ACC> foldFunction,
RocksDBKeyedStateBackend<K> backend)
Deprecated.
Creates a new
RocksDBFoldingState. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T value)
Deprecated.
|
ACC |
get()
Deprecated.
|
org.apache.flink.api.common.typeutils.TypeSerializer<K> |
getKeySerializer()
Deprecated.
|
org.apache.flink.api.common.typeutils.TypeSerializer<N> |
getNamespaceSerializer()
Deprecated.
|
org.apache.flink.api.common.typeutils.TypeSerializer<ACC> |
getValueSerializer()
Deprecated.
|
clear, getDefaultValue, getSerializedValue, setCurrentNamespace, writeCurrentKeyWithGroupAndNamespace, writeKeyWithGroupAndNamespace, writeKeyWithGroupAndNamespaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic RocksDBFoldingState(org.rocksdb.ColumnFamilyHandle columnFamily,
org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer,
org.apache.flink.api.common.typeutils.TypeSerializer<ACC> valueSerializer,
ACC defaultValue,
org.apache.flink.api.common.functions.FoldFunction<T,ACC> foldFunction,
RocksDBKeyedStateBackend<K> backend)
RocksDBFoldingState.columnFamily - The RocksDB column family that this state is associated to.namespaceSerializer - The serializer for the namespace.valueSerializer - The serializer for the state.defaultValue - The default value for the state.foldFunction - The fold function used for folding state.backend - The backend for which this state is bind to.public org.apache.flink.api.common.typeutils.TypeSerializer<K> getKeySerializer()
public org.apache.flink.api.common.typeutils.TypeSerializer<N> getNamespaceSerializer()
public org.apache.flink.api.common.typeutils.TypeSerializer<ACC> getValueSerializer()
public ACC get()
public void add(T value) throws IOException
add in interface org.apache.flink.api.common.state.AppendingState<T,ACC>IOExceptionCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.