Class GenericAvroWriter

  • All Implemented Interfaces:
    org.apache.pulsar.client.api.schema.SchemaWriter<org.apache.pulsar.client.api.schema.GenericRecord>

    public class GenericAvroWriter
    extends java.lang.Object
    implements org.apache.pulsar.client.api.schema.SchemaWriter<org.apache.pulsar.client.api.schema.GenericRecord>
    • Constructor Summary

      Constructors 
      Constructor Description
      GenericAvroWriter​(org.apache.avro.Schema schema)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] write​(org.apache.pulsar.client.api.schema.GenericRecord message)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GenericAvroWriter

        public GenericAvroWriter​(org.apache.avro.Schema schema)
    • Method Detail

      • write

        public byte[] write​(org.apache.pulsar.client.api.schema.GenericRecord message)
        Specified by:
        write in interface org.apache.pulsar.client.api.schema.SchemaWriter<org.apache.pulsar.client.api.schema.GenericRecord>