Class DataWriter<T>

    • Constructor Detail

      • DataWriter

        protected DataWriter​(org.apache.avro.Schema schema)
    • Method Detail

      • create

        public static <D> DataWriter<D> create​(org.apache.avro.Schema schema)
      • setSchema

        public void setSchema​(org.apache.avro.Schema schema)
        Specified by:
        setSchema in interface org.apache.avro.io.DatumWriter<T>
      • write

        public void write​(T datum,
                          org.apache.avro.io.Encoder out)
                   throws java.io.IOException
        Specified by:
        write in interface org.apache.avro.io.DatumWriter<T>
        Throws:
        java.io.IOException