org.apache.avro.hadoop.io
Class AvroDatumConverterFactory.BytesWritableConverter

java.lang.Object
  extended by org.apache.avro.hadoop.io.AvroDatumConverter<org.apache.hadoop.io.BytesWritable,ByteBuffer>
      extended by org.apache.avro.hadoop.io.AvroDatumConverterFactory.BytesWritableConverter
Enclosing class:
AvroDatumConverterFactory

public static class AvroDatumConverterFactory.BytesWritableConverter
extends AvroDatumConverter<org.apache.hadoop.io.BytesWritable,ByteBuffer>

Converts BytesWritables into ByteBuffers.


Constructor Summary
AvroDatumConverterFactory.BytesWritableConverter()
          Constructor.
 
Method Summary
 ByteBuffer convert(org.apache.hadoop.io.BytesWritable 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
 

Constructor Detail

AvroDatumConverterFactory.BytesWritableConverter

public AvroDatumConverterFactory.BytesWritableConverter()
Constructor.

Method Detail

convert

public ByteBuffer convert(org.apache.hadoop.io.BytesWritable input)

Specified by:
convert in class AvroDatumConverter<org.apache.hadoop.io.BytesWritable,ByteBuffer>

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.BytesWritable,ByteBuffer>
Returns:
The writer schema for the output Avro datum.


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.