Package org.apache.spark.status.protobuf
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 TypeMethodDescriptiondeserialize(byte[] bytes) Deserialize the inputArray[Byte]to an object of the typeT.byte[]Serialize the input data of the typeTtoArray[Byte].
-
Method Details
-
deserialize
Deserialize the inputArray[Byte]to an object of the typeT.- Parameters:
bytes- (undocumented)- Returns:
- (undocumented)
-
serialize
Serialize the input data of the typeTtoArray[Byte].- Parameters:
input- (undocumented)- Returns:
- (undocumented)
-