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:
- org.apache.hadoop.io.serializer.Deserializer<AvroWrapper<D>>
public class AvroKeyDeserializer<D>
- extends AvroDeserializer<AvroWrapper<D>,D>
Deserializes AvroKey objects within Hadoop.
- See Also:
org.apache.avro.io.AvroDeserializer
|
Constructor Summary |
AvroKeyDeserializer(org.apache.avro.Schema writerSchema,
org.apache.avro.Schema readerSchema,
ClassLoader classLoader)
Constructor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AvroKeyDeserializer
public AvroKeyDeserializer(org.apache.avro.Schema writerSchema,
org.apache.avro.Schema readerSchema,
ClassLoader classLoader)
- Constructor.
- Parameters:
writerSchema - The Avro writer schema for the data to deserialize.readerSchema - The Avro reader schema for the data to deserialize.
createAvroWrapper
protected AvroWrapper<D> createAvroWrapper()
- Creates a new empty
AvroKey instance.
- Specified by:
createAvroWrapper in class AvroDeserializer<AvroWrapper<D>,D>
- Returns:
- a new empty AvroKey.
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.