Class AvroWriter<T>

java.lang.Object
org.apache.pulsar.client.impl.schema.writer.AvroWriter<T>
All Implemented Interfaces:
SchemaWriter<T>

public class AvroWriter<T> extends Object implements SchemaWriter<T>
  • Constructor Details

    • AvroWriter

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

      public AvroWriter(org.apache.avro.Schema schema, boolean jsr310ConversionEnabled)
  • Method Details

    • getEncoder

      public org.apache.avro.io.BinaryEncoder getEncoder()
    • write

      public byte[] write(T message)
      Specified by:
      write in interface SchemaWriter<T>