org.apache.avro.hadoop.io
Class AvroDatumConverterFactory.NullWritableConverter

java.lang.Object
  extended by org.apache.avro.hadoop.io.AvroDatumConverter<org.apache.hadoop.io.NullWritable,Object>
      extended by org.apache.avro.hadoop.io.AvroDatumConverterFactory.NullWritableConverter
Enclosing class:
AvroDatumConverterFactory

public static class AvroDatumConverterFactory.NullWritableConverter
extends AvroDatumConverter<org.apache.hadoop.io.NullWritable,Object>

Converts NullWritables into Nulls.


Constructor Summary
AvroDatumConverterFactory.NullWritableConverter()
          Constructor.
 
Method Summary
 Object convert(org.apache.hadoop.io.NullWritable input)
          
 org.apache.avro.Schema getWriterSchema()
          Gets the writer schema that should be used to serialize the output Avro datum.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvroDatumConverterFactory.NullWritableConverter

public AvroDatumConverterFactory.NullWritableConverter()
Constructor.

Method Detail

convert

public Object convert(org.apache.hadoop.io.NullWritable input)

Specified by:
convert in class AvroDatumConverter<org.apache.hadoop.io.NullWritable,Object>

getWriterSchema

public org.apache.avro.Schema getWriterSchema()
Gets the writer schema that should be used to serialize the output Avro datum.

Specified by:
getWriterSchema in class AvroDatumConverter<org.apache.hadoop.io.NullWritable,Object>
Returns:
The writer schema for the output Avro datum.


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.