Interface ProtobufSerDe<T>


public interface ProtobufSerDe<T>
:: DeveloperApi :: ProtobufSerDe used to represent the API for serialize and deserialize of Protobuf data related to UI. The subclass should implement this trait and register itself to org.apache.spark.status.protobuf.ProtobufSerDe so that KVStoreProtobufSerializer can use ServiceLoader to load and use them.

Since:
3.4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    deserialize(byte[] bytes)
    Deserialize the input Array[Byte] to an object of the type T.
    byte[]
    serialize(T input)
    Serialize the input data of the type T to Array[Byte].
  • Method Details

    • deserialize

      T deserialize(byte[] bytes)
      Deserialize the input Array[Byte] to an object of the type T.
      Parameters:
      bytes - (undocumented)
      Returns:
      (undocumented)
    • serialize

      byte[] serialize(T input)
      Serialize the input data of the type T to Array[Byte].
      Parameters:
      input - (undocumented)
      Returns:
      (undocumented)