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>>

public class AvroKeyDeserializer<D> extends AvroDeserializer<AvroWrapper<D>,D>
Deserializes AvroKey objects within Hadoop.
See Also:
  • Constructor Details

    • AvroKeyDeserializer

      public AvroKeyDeserializer(Schema writerSchema, 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.
    • AvroKeyDeserializer

      public AvroKeyDeserializer(Schema writerSchema, Schema readerSchema, DatumReader<D> datumReader)
      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