|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.kafka.common.serialization.ByteArraySerializer
public class ByteArraySerializer
Constructor Summary | |
---|---|
ByteArraySerializer()
|
Method Summary | |
---|---|
void |
close()
Close this serializer |
void |
configure(java.util.Map<java.lang.String,?> configs,
boolean isKey)
Configure this class. |
byte[] |
serialize(java.lang.String topic,
byte[] data)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ByteArraySerializer()
Method Detail |
---|
public void configure(java.util.Map<java.lang.String,?> configs, boolean isKey)
Serializer
configure
in interface Serializer<byte[]>
configs
- configs in key/value pairsisKey
- whether is for key or valuepublic byte[] serialize(java.lang.String topic, byte[] data)
serialize
in interface Serializer<byte[]>
topic
- topic associated with datadata
- typed data
public void close()
Serializer
close
in interface Serializer<byte[]>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |