Class ThriftDatumWriter<T>

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

public class ThriftDatumWriter<T> extends org.apache.avro.generic.GenericDatumWriter<T>
DatumWriter for generated thrift classes.
  • Constructor Details

    • ThriftDatumWriter

      public ThriftDatumWriter()
    • ThriftDatumWriter

      public ThriftDatumWriter(Class<T> c)
    • ThriftDatumWriter

      public ThriftDatumWriter(org.apache.avro.Schema schema)
    • ThriftDatumWriter

      protected ThriftDatumWriter(org.apache.avro.Schema root, ThriftData thriftData)
    • ThriftDatumWriter

      protected ThriftDatumWriter(ThriftData thriftData)
  • Method Details

    • writeBytes

      protected void writeBytes(Object datum, org.apache.avro.io.Encoder out) throws IOException
      Overrides:
      writeBytes in class org.apache.avro.generic.GenericDatumWriter<T>
      Throws:
      IOException