Interface SerializationDelegate

All Known Implementing Classes:
GzipBridgeThriftSerializationDelegate, GzipSerializationDelegate, GzipThriftSerializationDelegate, ThriftSerializationDelegate

public interface SerializationDelegate
Allow Utils to delegate meta serialization.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    deserialize(byte[] bytes, Class<T> clazz)
     
    void
    prepare(Map<String,Object> topoConf)
    Lifecycle step that will be called after instantiating with nullary constructor.
    byte[]
    serialize(Object object)
     
  • Method Details

    • prepare

      void prepare(Map<String,Object> topoConf)
      Lifecycle step that will be called after instantiating with nullary constructor.
    • serialize

      byte[] serialize(Object object)
    • deserialize

      <T> T deserialize(byte[] bytes, Class<T> clazz)