Interface GlueSchemaRegistrySerializer

All Known Implementing Classes:
GlueSchemaRegistrySerializerImpl

public interface GlueSchemaRegistrySerializer
Entry point to serialization capabilities of Glue Schema Registry client library.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    encode(String transportName, Schema schema, byte[] data)
    Encodes the given byte array with Schema Registry header information.
  • Method Details

    • encode

      byte[] encode(String transportName, Schema schema, byte[] data)
      Encodes the given byte array with Schema Registry header information. The header contains a reference to the Schema that corresponds to the data.
      Parameters:
      schema - Schema A Schema object representing the schema information.
      data - Byte array consisting of customer data that needs to be encoded.
      Returns:
      encodedData Schema Registry Encoded byte array which can only be decoded by Schema Registry de-serializer.