public class BytesSerializer extends Object implements Serializer<org.apache.kafka.common.utils.Bytes>
Constructor and Description |
---|
BytesSerializer() |
Modifier and Type | Method and Description |
---|---|
byte[] |
serialize(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(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