Package org.apache.avro.hadoop.io
Class AvroDatumConverterFactory.FloatWritableConverter
java.lang.Object
org.apache.avro.hadoop.io.AvroDatumConverter<FloatWritable,Float>
org.apache.avro.hadoop.io.AvroDatumConverterFactory.FloatWritableConverter
- Enclosing class:
AvroDatumConverterFactory
public static class AvroDatumConverterFactory.FloatWritableConverter
extends AvroDatumConverter<FloatWritable,Float>
Converts FloatWritables into Floats.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(FloatWritable input) Gets the writer schema that should be used to serialize the output Avro datum.
-
Constructor Details
-
FloatWritableConverter
public FloatWritableConverter()Constructor.
-
-
Method Details
-
convert
- Specified by:
convert
in classAvroDatumConverter<FloatWritable,
Float>
-
getWriterSchema
Gets the writer schema that should be used to serialize the output Avro datum.- Specified by:
getWriterSchema
in classAvroDatumConverter<FloatWritable,
Float> - Returns:
- The writer schema for the output Avro datum.
-