Class SerializationDataEncoder

java.lang.Object
com.amazonaws.services.schemaregistry.serializers.SerializationDataEncoder

public class SerializationDataEncoder extends Object
Encodes Schema Register headers into byte buffers.
  • Constructor Details

  • Method Details

    • write

      public byte[] write(byte[] objectBytes, UUID schemaVersionId)
      Schema Registry header consists of following components: 1. Version byte. 2. Compression byte. 3. Schema Version UUID Id that represents the writer schema. 4. Actual data bytes. The data can be compressed based on configuration.
      Parameters:
      objectBytes - bytes to add header to.
      Returns:
      Schema Registry header encoded data.