org.apache.avro.hadoop.io
Class AvroDatumConverterFactory.TextConverter
java.lang.Object
org.apache.avro.hadoop.io.AvroDatumConverter<org.apache.hadoop.io.Text,CharSequence>
org.apache.avro.hadoop.io.AvroDatumConverterFactory.TextConverter
- Enclosing class:
- AvroDatumConverterFactory
public static class AvroDatumConverterFactory.TextConverter
- extends AvroDatumConverter<org.apache.hadoop.io.Text,CharSequence>
Converts Text into CharSequences.
|
Method Summary |
CharSequence |
convert(org.apache.hadoop.io.Text 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 |
AvroDatumConverterFactory.TextConverter
public AvroDatumConverterFactory.TextConverter()
- Constructor.
convert
public CharSequence convert(org.apache.hadoop.io.Text input)
-
- Specified by:
convert in class AvroDatumConverter<org.apache.hadoop.io.Text,CharSequence>
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.Text,CharSequence>
- Returns:
- The writer schema for the output Avro datum.
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.