Package org.apache.avro.hadoop.io
Class AvroKeyDeserializer<D>
java.lang.Object
org.apache.avro.hadoop.io.AvroDeserializer<AvroWrapper<D>,D>
org.apache.avro.hadoop.io.AvroKeyDeserializer<D>
- Type Parameters:
D
- The java type of the avro data to deserialize.
- All Implemented Interfaces:
Deserializer<AvroWrapper<D>>
Deserializes AvroKey objects within Hadoop.
- See Also:
-
Constructor Summary
ConstructorDescriptionAvroKeyDeserializer
(Schema writerSchema, Schema readerSchema, ClassLoader classLoader) Constructor.AvroKeyDeserializer
(Schema writerSchema, Schema readerSchema, DatumReader<D> datumReader) Constructor. -
Method Summary
Methods inherited from class org.apache.avro.hadoop.io.AvroDeserializer
close, deserialize, getReaderSchema, getWriterSchema, open
-
Constructor Details
-
AvroKeyDeserializer
Constructor.- Parameters:
writerSchema
- The Avro writer schema for the data to deserialize.readerSchema
- The Avro reader schema for the data to deserialize.
-
AvroKeyDeserializer
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 emptyAvroKey
instance.- Specified by:
createAvroWrapper
in classAvroDeserializer<AvroWrapper<D>,
D> - Returns:
- a new empty AvroKey.
-