Package org.apache.avro.hadoop.io
Class AvroValueDeserializer<D>
java.lang.Object
org.apache.avro.hadoop.io.AvroDeserializer<AvroWrapper<D>,D>
org.apache.avro.hadoop.io.AvroValueDeserializer<D>
- Type Parameters:
D
- The java type of the avro data to deserialize.
- All Implemented Interfaces:
Deserializer<AvroWrapper<D>>
Deserializes AvroValue objects within Hadoop.
- See Also:
-
Constructor Summary
ConstructorDescriptionAvroValueDeserializer
(Schema writerSchema, Schema readerSchema, ClassLoader classLoader) Constructor.AvroValueDeserializer
(Schema writerSchema, Schema readerSchema, DatumReader<D> datumReader) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected AvroWrapper
<D> Creates a new emptyAvroValue
instance.Methods inherited from class org.apache.avro.hadoop.io.AvroDeserializer
close, deserialize, getReaderSchema, getWriterSchema, open
-
Constructor Details
-
AvroValueDeserializer
Constructor.- Parameters:
writerSchema
- The Avro writer schema for the data to deserialize.readerSchema
- The Avro reader schema for the data to deserialize.
-
AvroValueDeserializer
Constructor.- Parameters:
writerSchema
- The Avro writer schema for the data to deserialize.readerSchema
- The Avro reader schema for the data to deserialize.datumReader
- The Avro datum reader to use for deserialization.
-
-
Method Details
-
createAvroWrapper
Creates a new emptyAvroValue
instance.- Specified by:
createAvroWrapper
in classAvroDeserializer<AvroWrapper<D>,
D> - Returns:
- a new empty AvroValue.
-