org.apache.avro.hadoop.io
Class AvroDatumConverterFactory.AvroWrapperConverter
java.lang.Object
org.apache.avro.hadoop.io.AvroDatumConverter<AvroWrapper<?>,Object>
org.apache.avro.hadoop.io.AvroDatumConverterFactory.AvroWrapperConverter
- Enclosing class:
- AvroDatumConverterFactory
public static class AvroDatumConverterFactory.AvroWrapperConverter
- extends AvroDatumConverter<AvroWrapper<?>,Object>
Converts AvroWrappers into their wrapped Avro data.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AvroDatumConverterFactory.AvroWrapperConverter
public AvroDatumConverterFactory.AvroWrapperConverter(org.apache.avro.Schema schema)
convert
public Object convert(AvroWrapper<?> input)
-
- Specified by:
convert in class AvroDatumConverter<AvroWrapper<?>,Object>
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<AvroWrapper<?>,Object>
- Returns:
- The writer schema for the output Avro datum.
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.