Package org.apache.flink.state.forst
Class ForStSerializerUtils
java.lang.Object
org.apache.flink.state.forst.ForStSerializerUtils
A utility of serialization keys in ForSt.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K,N> byte[] serializeKeyAndNamespace(ContextKey<K, N> contextKey, org.apache.flink.runtime.state.SerializedCompositeKeyBuilder<K> builder, N defaultNamespace, org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer, boolean enableKeyReuse) Serialize a key and namespace.
-
Method Details
-
serializeKeyAndNamespace
public static <K,N> byte[] serializeKeyAndNamespace(ContextKey<K, N> contextKey, org.apache.flink.runtime.state.SerializedCompositeKeyBuilder<K> builder, N defaultNamespace, org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer, boolean enableKeyReuse) throws IOExceptionSerialize a key and namespace. No user key.- Parameters:
contextKey- the context key of current requestbuilder- key builderdefaultNamespace- default namespace of the statenamespaceSerializer- the namespace serializerenableKeyReuse- whether to enable key reuse- Throws:
IOException
-