Class ByteArrayToGenericRecordConverter

java.lang.Object
org.axonframework.conversion.avro.ByteArrayToGenericRecordConverter
All Implemented Interfaces:
ContentTypeConverter<byte[],org.apache.avro.generic.GenericRecord>

public class ByteArrayToGenericRecordConverter extends Object implements ContentTypeConverter<byte[],org.apache.avro.generic.GenericRecord>
A ContentTypeConverter implementation that converts byte[] into an Avro GenericRecord.

Searches for the correct Avro Schema by extracting the fingerprint from the given byte[].

Since:
4.11.0
Author:
Simon Zambrovski, Jan Galinski
  • Constructor Details

    • ByteArrayToGenericRecordConverter

      public ByteArrayToGenericRecordConverter(@Nonnull org.apache.avro.message.SchemaStore schemaStore)
      Constructs a content type converter used during deserialization for upcasting, to create GenericRecord from single-object-encoded for a given schema.
      Parameters:
      schemaStore - The schema store to resolve schemas with based on a fingerprint.
  • Method Details