Class GenericAvroReader<T>

java.lang.Object
org.apache.iceberg.avro.GenericAvroReader<T>
All Implemented Interfaces:
org.apache.avro.io.DatumReader<T>, SupportsRowPosition

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

    • create

      public static <D> GenericAvroReader<D> create(Schema schema)
    • create

      public static <D> GenericAvroReader<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.DatumReader<T>
    • setClassLoader

      public void setClassLoader(ClassLoader newClassLoader)
    • setRenames

      public void setRenames(Map<String,String> renames)
    • setRowPositionSupplier

      public void setRowPositionSupplier(Supplier<Long> posSupplier)
      Specified by:
      setRowPositionSupplier in interface SupportsRowPosition
    • read

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