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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(byte[] bytes) byte[]serialize(CustomObject object)
-
Constructor Details
-
CustomObjectSerde
public CustomObjectSerde()
-
-
Method Details
-
deserialize
- Specified by:
deserializein interfaceorg.apache.pulsar.functions.api.SerDe<CustomObject>
-
serialize
- Specified by:
serializein interfaceorg.apache.pulsar.functions.api.SerDe<CustomObject>
-