com.ibm.eventstreams.serdes

Class EventStreamsDeserializer

  • All Implemented Interfaces:
    Closeable, AutoCloseable, org.apache.kafka.common.serialization.Deserializer<org.apache.avro.generic.IndexedRecord>


    public class EventStreamsDeserializer
    extends Object
    implements org.apache.kafka.common.serialization.Deserializer<org.apache.avro.generic.IndexedRecord>
    The Event Streams deserializer used by Kafka to convert bytes to generic or specific IndexedRecord objects, using schemas retrieved from the schema registry.
    • Constructor Detail

      • EventStreamsDeserializer

        public EventStreamsDeserializer()
    • Method Detail

      • configure

        public void configure(Map<String,?> configs,
                              boolean isKey)
        Specified by:
        configure in interface org.apache.kafka.common.serialization.Deserializer<org.apache.avro.generic.IndexedRecord>
      • deserialize

        public org.apache.avro.generic.IndexedRecord deserialize(String topic,
                                                                 byte[] data)
        Specified by:
        deserialize in interface org.apache.kafka.common.serialization.Deserializer<org.apache.avro.generic.IndexedRecord>
      • deserialize

        public org.apache.avro.generic.IndexedRecord deserialize(String topic,
                                                                 org.apache.kafka.common.header.Headers headers,
                                                                 byte[] data)
        Specified by:
        deserialize in interface org.apache.kafka.common.serialization.Deserializer<org.apache.avro.generic.IndexedRecord>
      • close

        public void close()
        Specified by:
        close in interface Closeable
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface org.apache.kafka.common.serialization.Deserializer<org.apache.avro.generic.IndexedRecord>

Copyright © 2019. All rights reserved.