- All Implemented Interfaces:
org.apache.pulsar.functions.api.SerDe<Integer>
public class ByteBufferSerDe
extends Object
implements org.apache.pulsar.functions.api.SerDe<Integer>
Simple ByteBuffer Serializer and Deserializer.
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ByteBufferSerDe
public ByteBufferSerDe()
-
Method Details
-
deserialize
public Integer deserialize(byte[] bytes)
- Specified by:
deserialize in interface org.apache.pulsar.functions.api.SerDe<Integer>
-
serialize
public byte[] serialize(Integer integer)
- Specified by:
serialize in interface org.apache.pulsar.functions.api.SerDe<Integer>