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