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 SummaryConstructorsConstructorDescriptionAvroValueDeserializer(Schema writerSchema, Schema readerSchema, ClassLoader classLoader) Constructor.AvroValueDeserializer(Schema writerSchema, Schema readerSchema, DatumReader<D> datumReader) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionprotected AvroWrapper<D> Creates a new emptyAvroValueinstance.Methods inherited from class org.apache.avro.hadoop.io.AvroDeserializerclose, deserialize, getReaderSchema, getWriterSchema, open
- 
Constructor Details- 
AvroValueDeserializerConstructor.- Parameters:
- writerSchema- The Avro writer schema for the data to deserialize.
- readerSchema- The Avro reader schema for the data to deserialize.
 
- 
AvroValueDeserializerConstructor.- 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- 
createAvroWrapperCreates a new emptyAvroValueinstance.- Specified by:
- createAvroWrapperin class- AvroDeserializer<AvroWrapper<D>,- D> 
- Returns:
- a new empty AvroValue.
 
 
-