Class ForStSerializerUtils

java.lang.Object
org.apache.flink.state.forst.ForStSerializerUtils

public class ForStSerializerUtils extends Object
A utility of serialization keys in ForSt.
  • 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 IOException
      Serialize a key and namespace. No user key.
      Parameters:
      contextKey - the context key of current request
      builder - key builder
      defaultNamespace - default namespace of the state
      namespaceSerializer - the namespace serializer
      enableKeyReuse - whether to enable key reuse
      Throws:
      IOException