org.apache.avro.thrift
Class ThriftDatumWriter<T>

java.lang.Object
  extended by org.apache.avro.generic.GenericDatumWriter<T>
      extended by org.apache.avro.thrift.ThriftDatumWriter<T>
All Implemented Interfaces:
DatumWriter<T>

public class ThriftDatumWriter<T>
extends GenericDatumWriter<T>

DatumWriter for generated thrift classes.


Constructor Summary
  ThriftDatumWriter()
           
  ThriftDatumWriter(Class<T> c)
           
  ThriftDatumWriter(Schema schema)
           
protected ThriftDatumWriter(Schema root, ThriftData thriftData)
           
protected ThriftDatumWriter(ThriftData thriftData)
           
 
Method Summary
protected  void writeBytes(Object datum, Encoder out)
          Called to write a bytes.
 
Methods inherited from class org.apache.avro.generic.GenericDatumWriter
getArrayElements, getArraySize, getData, getMapEntries, getMapSize, npe, resolveUnion, setSchema, write, write, writeArray, writeEnum, writeFixed, writeMap, writeRecord, writeString, writeString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThriftDatumWriter

public ThriftDatumWriter()

ThriftDatumWriter

public ThriftDatumWriter(Class<T> c)

ThriftDatumWriter

public ThriftDatumWriter(Schema schema)

ThriftDatumWriter

protected ThriftDatumWriter(Schema root,
                            ThriftData thriftData)

ThriftDatumWriter

protected ThriftDatumWriter(ThriftData thriftData)
Method Detail

writeBytes

protected void writeBytes(Object datum,
                          Encoder out)
                   throws IOException
Description copied from class: GenericDatumWriter
Called to write a bytes. May be overridden for alternate bytes representations.

Overrides:
writeBytes in class GenericDatumWriter<T>
Throws:
IOException


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