public class AvroDeserializer extends Object implements GlueSchemaRegistryDataFormatDeserializer
| Modifier and Type | Field and Description |
|---|---|
protected @NonNull com.google.common.cache.LoadingCache<String,org.apache.avro.io.DatumReader<Object>> |
datumReaderCache |
| Constructor and Description |
|---|
AvroDeserializer(GlueSchemaRegistryConfiguration configs)
Constructor accepting various dependencies.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(@NonNull ByteBuffer buffer,
@NonNull String schema)
Deserialize the bytes to the original Avro message given the schema retrieved
from the schema registry.
|
public AvroDeserializer(GlueSchemaRegistryConfiguration configs)
configs - configuration elementspublic Object deserialize(@NonNull @NonNull ByteBuffer buffer, @NonNull @NonNull String schema)
deserialize in interface GlueSchemaRegistryDataFormatDeserializerbuffer - data to be de-serializedschema - Avro schemaAWSSchemaRegistryException - Exception during de-serializationCopyright © 2021. All rights reserved.