Class CustomObjectSerde

  • All Implemented Interfaces:
    org.apache.pulsar.functions.api.SerDe<CustomObject>

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

      • CustomObjectSerde

        public CustomObjectSerde()
    • Method Detail

      • 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>