Class ProtobufDatumWriter<T>

java.lang.Object
org.apache.avro.generic.GenericDatumWriter<T>
org.apache.avro.protobuf.ProtobufDatumWriter<T>
All Implemented Interfaces:
org.apache.avro.io.DatumWriter<T>

public class ProtobufDatumWriter<T> extends org.apache.avro.generic.GenericDatumWriter<T>
DatumWriter for generated protobuf classes.
  • Constructor Details

    • ProtobufDatumWriter

      public ProtobufDatumWriter()
    • ProtobufDatumWriter

      public ProtobufDatumWriter(Class<T> c)
    • ProtobufDatumWriter

      public ProtobufDatumWriter(org.apache.avro.Schema schema)
    • ProtobufDatumWriter

      protected ProtobufDatumWriter(org.apache.avro.Schema root, ProtobufData protobufData)
    • ProtobufDatumWriter

      protected ProtobufDatumWriter(ProtobufData protobufData)
  • Method Details

    • writeEnum

      protected void writeEnum(org.apache.avro.Schema schema, Object datum, org.apache.avro.io.Encoder out) throws IOException
      Overrides:
      writeEnum in class org.apache.avro.generic.GenericDatumWriter<T>
      Throws:
      IOException
    • writeBytes

      protected void writeBytes(Object datum, org.apache.avro.io.Encoder out) throws IOException
      Overrides:
      writeBytes in class org.apache.avro.generic.GenericDatumWriter<T>
      Throws:
      IOException