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