Package org.apache.avro.thrift
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 Summary
ConstructorsModifierConstructorDescriptionThriftDatumWriter
(Class<T> c) ThriftDatumWriter
(org.apache.avro.Schema schema) protected
ThriftDatumWriter
(org.apache.avro.Schema root, ThriftData thriftData) protected
ThriftDatumWriter
(ThriftData thriftData) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
writeBytes
(Object datum, org.apache.avro.io.Encoder out) Methods inherited from class org.apache.avro.generic.GenericDatumWriter
addAvroTypeMsg, addClassCastMsg, convert, getArrayElements, getArraySize, getData, getMapEntries, getMapSize, npe, resolveUnion, setSchema, write, write, writeArray, writeEnum, writeField, writeFixed, writeMap, writeRecord, writeString, writeString, writeWithoutConversion
-
Constructor Details
-
ThriftDatumWriter
public ThriftDatumWriter() -
ThriftDatumWriter
-
ThriftDatumWriter
public ThriftDatumWriter(org.apache.avro.Schema schema) -
ThriftDatumWriter
-
ThriftDatumWriter
-
-
Method Details
-
writeBytes
- Overrides:
writeBytes
in classorg.apache.avro.generic.GenericDatumWriter<T>
- Throws:
IOException
-