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