Class InternalReader<T>

  • Type Parameters:
    T - Java type returned by the reader
    All Implemented Interfaces:
    org.apache.avro.io.DatumReader<T>, SupportsRowPosition

    public class InternalReader<T>
    extends java.lang.Object
    implements org.apache.avro.io.DatumReader<T>, SupportsRowPosition
    A reader that produces Iceberg's internal in-memory object model.

    Iceberg's internal in-memory object model produces the types defined in Type.TypeID.javaClass().

    • Method Detail

      • setSchema

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

        public InternalReader<T> setCustomType​(int fieldId,
                                               java.lang.Class<? extends StructLike> structClass)
      • 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