Package org.apache.avro.protobuf
Class ProtobufDatumWriter<T>
java.lang.Object
org.apache.avro.generic.GenericDatumWriter<T>
org.apache.avro.protobuf.ProtobufDatumWriter<T>
- All Implemented Interfaces:
DatumWriter<T>
DatumWriter
for generated protobuf
classes.-
Constructor Summary
ModifierConstructorDescriptionprotected
ProtobufDatumWriter
(ProtobufData protobufData) ProtobufDatumWriter
(Schema schema) protected
ProtobufDatumWriter
(Schema root, ProtobufData protobufData) -
Method Summary
Methods inherited from class org.apache.avro.generic.GenericDatumWriter
addAvroTypeMsg, addClassCastMsg, convert, getArrayElements, getArraySize, getData, getMapEntries, getMapSize, npe, resolveUnion, setSchema, write, write, writeArray, writeField, writeFixed, writeMap, writeRecord, writeString, writeString, writeWithoutConversion
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.avro.io.DatumWriter
toByteArray
-
Constructor Details
-
ProtobufDatumWriter
public ProtobufDatumWriter() -
ProtobufDatumWriter
-
ProtobufDatumWriter
-
ProtobufDatumWriter
-
ProtobufDatumWriter
-
-
Method Details
-
writeEnum
Description copied from class:GenericDatumWriter
Called to write an enum value. May be overridden for alternate enum representations.- Overrides:
writeEnum
in classGenericDatumWriter<T>
- Throws:
IOException
-
writeBytes
Description copied from class:GenericDatumWriter
Called to write a bytes. May be overridden for alternate bytes representations.- Overrides:
writeBytes
in classGenericDatumWriter<T>
- Throws:
IOException
-