org.apache.avro.hadoop.io
Class AvroKeyDeserializer<D>

java.lang.Object
  extended by org.apache.avro.hadoop.io.AvroDeserializer<AvroWrapper<D>,D>
      extended by 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.
 
Method Summary
protected  AvroWrapper<D> createAvroWrapper()
          Creates a new empty AvroKey instance.
 
Methods inherited from class org.apache.avro.hadoop.io.AvroDeserializer
close, deserialize, getReaderSchema, getWriterSchema, open
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.