Interface Serializer<K,V>

Type Parameters:
K - Key type to be serialized from.

A class that implements this interface is expected to have a constructor with no parameter.

All Superinterfaces:
AutoCloseable, Closeable, org.apache.kafka.common.Configurable, Serializable
All Known Implementing Classes:
SchemaRegistrySerializer

public interface Serializer<K,V> extends org.apache.kafka.common.Configurable, Serializable, Closeable
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Close this serializer
    deserializeKey(byte[] key)
     
    deserializeValue(K key, byte[] value)
     
    byte[]
     
    byte[]
     

    Methods inherited from interface org.apache.kafka.common.Configurable

    configure