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
ConstructorsModifierConstructorDescriptionprotectedProtobufDatumWriter(ProtobufData protobufData) ProtobufDatumWriter(Schema schema) protectedProtobufDatumWriter(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
-
Constructor Details
-
ProtobufDatumWriter
public ProtobufDatumWriter() -
ProtobufDatumWriter
-
ProtobufDatumWriter
-
ProtobufDatumWriter
-
ProtobufDatumWriter
-
-
Method Details
-
writeEnum
Description copied from class:GenericDatumWriterCalled to write an enum value. May be overridden for alternate enum representations.- Overrides:
writeEnumin classGenericDatumWriter<T>- Throws:
IOException
-
writeBytes
Description copied from class:GenericDatumWriterCalled to write a bytes. May be overridden for alternate bytes representations.- Overrides:
writeBytesin classGenericDatumWriter<T>- Throws:
IOException
-