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

java.lang.Object
  extended by org.apache.avro.hadoop.io.AvroDatumConverter<org.apache.hadoop.io.DoubleWritable,Double>
      extended by org.apache.avro.hadoop.io.AvroDatumConverterFactory.DoubleWritableConverter
Enclosing class:
AvroDatumConverterFactory

public static class AvroDatumConverterFactory.DoubleWritableConverter
extends AvroDatumConverter<org.apache.hadoop.io.DoubleWritable,Double>

Converts DoubleWritables into Doubles.


Constructor Summary
AvroDatumConverterFactory.DoubleWritableConverter()
          Constructor.
 
Method Summary
 Double convert(org.apache.hadoop.io.DoubleWritable 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.DoubleWritableConverter

public AvroDatumConverterFactory.DoubleWritableConverter()
Constructor.

Method Detail

convert

public Double convert(org.apache.hadoop.io.DoubleWritable input)

Specified by:
convert in class AvroDatumConverter<org.apache.hadoop.io.DoubleWritable,Double>

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.DoubleWritable,Double>
Returns:
The writer schema for the output Avro datum.


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