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 Constructor Description AvroObjectDeserializer(org.apache.avro.Schema schema)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tdeserialize(byte[] data)Deserialize an Avro object from a byte array
-
-
-
Method Detail
-
deserialize
public T deserialize(byte[] data)
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
-
-