Class AvroObjectDeserializer<T extends org.apache.avro.specific.SpecificRecordBase>
java.lang.Object
net.sourceforge.jbizmo.commons.avro.util.AvroObjectDeserializer<T>
- Type Parameters:
T- the type of the object that should be deserialized
public class AvroObjectDeserializer<T extends org.apache.avro.specific.SpecificRecordBase>
extends Object
Utility class for deserializing Avro objects
Copyright 2021 (C) by Martin Ganserer
- Version:
- 1.0.0
- Author:
- Martin Ganserer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(byte[] data) Deserialize an Avro object from a byte array
-
Constructor Details
-
AvroObjectDeserializer
public AvroObjectDeserializer(org.apache.avro.Schema schema) Constructor- Parameters:
schema- the schema that should be used
-
-
Method Details
-
deserialize
Deserialize an Avro object from a byte array- Parameters:
data- the byte array that should be used for deserialization- Returns:
- the deserialized object
- Throws:
AvroObjectDeserializationException- if the object could not be deserialized
-