public class EventStreamsSerializer extends Object implements org.apache.kafka.common.serialization.Serializer<org.apache.avro.generic.IndexedRecord>
IndexedRecord
objects to bytes,
using schemas retrieved from the schema registry.Constructor and Description |
---|
EventStreamsSerializer() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
configure(Map<String,?> configs,
boolean isKey) |
byte[] |
serialize(String topic,
org.apache.kafka.common.header.Headers headers,
org.apache.avro.generic.IndexedRecord data) |
byte[] |
serialize(String topic,
org.apache.avro.generic.IndexedRecord data) |
public void configure(Map<String,?> configs, boolean isKey)
configure
in interface org.apache.kafka.common.serialization.Serializer<org.apache.avro.generic.IndexedRecord>
public byte[] serialize(String topic, org.apache.avro.generic.IndexedRecord data)
serialize
in interface org.apache.kafka.common.serialization.Serializer<org.apache.avro.generic.IndexedRecord>
public byte[] serialize(String topic, org.apache.kafka.common.header.Headers headers, org.apache.avro.generic.IndexedRecord data)
serialize
in interface org.apache.kafka.common.serialization.Serializer<org.apache.avro.generic.IndexedRecord>
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in interface org.apache.kafka.common.serialization.Serializer<org.apache.avro.generic.IndexedRecord>
Copyright © 2019. All rights reserved.