Class GenericAvroReader<T>

  • All Implemented Interfaces:
    org.apache.avro.io.DatumReader<T>, SupportsRowPosition

    public class GenericAvroReader<T>
    extends java.lang.Object
    implements org.apache.avro.io.DatumReader<T>, SupportsRowPosition
    • Method Detail

      • create

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

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

        public void setClassLoader​(java.lang.ClassLoader newClassLoader)
      • setRenames

        public void setRenames​(java.util.Map<java.lang.String,​java.lang.String> renames)
      • read

        public T read​(T reuse,
                      org.apache.avro.io.Decoder decoder)
               throws java.io.IOException
        Specified by:
        read in interface org.apache.avro.io.DatumReader<T>
        Throws:
        java.io.IOException