Interface Codec

  • All Superinterfaces:
    Decoder, Encoder

    public interface Codec
    extends Encoder, Decoder
    Codec interface extends Encoder and Decoder interfaces that defines methods to encode and decode data. Encoder interface takes a codec type and encoding function. Decoder interface defines a decoding function.
    • Method Detail

      • getName

        java.lang.String getName()
        Name identifying the Codec Type. This name should be same as the CodecType.getName() that is registered for the group in schema registry service. The deserializers will find the decoder for the encoded data from EncodingInfo.getCodecType() by matching the name.
        Returns:
        Name of the codec.