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:
DatumWriter<T>
DatumWriter for generated thrift
classes.-
Constructor Summary
ConstructorsModifierConstructorDescriptionThriftDatumWriter(Class<T> c) ThriftDatumWriter(Schema schema) protectedThriftDatumWriter(Schema root, ThriftData thriftData) protectedThriftDatumWriter(ThriftData thriftData) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidwriteBytes(Object datum, Encoder out) Called to write a bytes.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, writeWithoutConversionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.avro.io.DatumWriter
toByteArray
-
Constructor Details
-
ThriftDatumWriter
public ThriftDatumWriter() -
ThriftDatumWriter
-
ThriftDatumWriter
-
ThriftDatumWriter
-
ThriftDatumWriter
-
-
Method Details
-
writeBytes
Description copied from class:GenericDatumWriterCalled to write a bytes. May be overridden for alternate bytes representations.- Overrides:
writeBytesin classGenericDatumWriter<T>- Throws:
IOException
-