public class ProtobufDatumWriter<T>
extends org.apache.avro.generic.GenericDatumWriter<T>
DatumWriter
for generated protobuf
classes.Modifier | Constructor and Description |
---|---|
|
ProtobufDatumWriter() |
|
ProtobufDatumWriter(Class<T> c) |
protected |
ProtobufDatumWriter(ProtobufData protobufData) |
|
ProtobufDatumWriter(org.apache.avro.Schema schema) |
protected |
ProtobufDatumWriter(org.apache.avro.Schema root,
ProtobufData protobufData) |
Modifier and Type | Method and Description |
---|---|
protected void |
writeBytes(Object datum,
org.apache.avro.io.Encoder out) |
protected void |
writeEnum(org.apache.avro.Schema schema,
Object datum,
org.apache.avro.io.Encoder out) |
addAvroTypeMsg, addClassCastMsg, convert, getArrayElements, getArraySize, getData, getMapEntries, getMapSize, npe, resolveUnion, setSchema, write, write, writeArray, writeField, writeFixed, writeMap, writeRecord, writeString, writeString, writeWithoutConversion
public ProtobufDatumWriter()
public ProtobufDatumWriter(org.apache.avro.Schema schema)
protected ProtobufDatumWriter(org.apache.avro.Schema root, ProtobufData protobufData)
protected ProtobufDatumWriter(ProtobufData protobufData)
protected void writeEnum(org.apache.avro.Schema schema, Object datum, org.apache.avro.io.Encoder out) throws IOException
writeEnum
in class org.apache.avro.generic.GenericDatumWriter<T>
IOException
protected void writeBytes(Object datum, org.apache.avro.io.Encoder out) throws IOException
writeBytes
in class org.apache.avro.generic.GenericDatumWriter<T>
IOException
Copyright © 2009–2023 The Apache Software Foundation. All rights reserved.