public class ProtobufDatumWriter<T> extends GenericDatumWriter<T>
DatumWriter
for generated protobuf
classes.Modifier | Constructor and Description |
---|---|
|
ProtobufDatumWriter() |
|
ProtobufDatumWriter(Class<T> c) |
protected |
ProtobufDatumWriter(ProtobufData protobufData) |
|
ProtobufDatumWriter(Schema schema) |
protected |
ProtobufDatumWriter(Schema root,
ProtobufData protobufData) |
Modifier and Type | Method and Description |
---|---|
protected void |
writeBytes(Object datum,
Encoder out)
Called to write a bytes.
|
protected void |
writeEnum(Schema schema,
Object datum,
Encoder out)
Called to write an enum value.
|
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(Schema schema)
protected ProtobufDatumWriter(Schema root, ProtobufData protobufData)
protected ProtobufDatumWriter(ProtobufData protobufData)
protected void writeEnum(Schema schema, Object datum, Encoder out) throws IOException
GenericDatumWriter
writeEnum
in class GenericDatumWriter<T>
IOException
protected void writeBytes(Object datum, Encoder out) throws IOException
GenericDatumWriter
writeBytes
in class GenericDatumWriter<T>
IOException
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.