public class BytesSerializer extends java.lang.Object implements Serializer<org.apache.kafka.common.utils.Bytes>
Constructor and Description |
---|
BytesSerializer() |
Modifier and Type | Method and Description |
---|---|
byte[] |
serialize(java.lang.String topic,
org.apache.kafka.common.utils.Bytes data)
Convert
data into a byte array. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, configure, serialize
public byte[] serialize(java.lang.String topic, org.apache.kafka.common.utils.Bytes data)
Serializer
data
into a byte array.serialize
in interface Serializer<org.apache.kafka.common.utils.Bytes>
topic
- topic associated with datadata
- typed data