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