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 java.lang.Object implements org.apache.pulsar.functions.api.SerDe<CustomObject>
This class takes care of serializing/deserializing CustomObject.
-
-
Constructor Summary
Constructors Constructor Description CustomObjectSerde()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomObjectdeserialize(byte[] bytes)byte[]serialize(CustomObject object)
-
-
-
Method Detail
-
deserialize
public CustomObject deserialize(byte[] bytes)
- Specified by:
deserializein interfaceorg.apache.pulsar.functions.api.SerDe<CustomObject>
-
serialize
public byte[] serialize(CustomObject object)
- Specified by:
serializein interfaceorg.apache.pulsar.functions.api.SerDe<CustomObject>
-
-