Class CustomObjectSerde

java.lang.Object
org.apache.pulsar.functions.api.examples.serde.CustomObjectSerde
All Implemented Interfaces:
org.apache.pulsar.functions.api.SerDe<CustomObject>

public class CustomObjectSerde extends Object implements org.apache.pulsar.functions.api.SerDe<CustomObject>
This class takes care of serializing/deserializing CustomObject.
  • Constructor Details

    • CustomObjectSerde

      public CustomObjectSerde()
  • Method Details

    • deserialize

      public CustomObject deserialize(byte[] bytes)
      Specified by:
      deserialize in interface org.apache.pulsar.functions.api.SerDe<CustomObject>
    • serialize

      public byte[] serialize(CustomObject object)
      Specified by:
      serialize in interface org.apache.pulsar.functions.api.SerDe<CustomObject>