@SuppressWarnings("unchecked")
  private void initReader() {
    this.reader =
        (ValueReader<T>)
            AvroWithPartnerVisitor.visit(
                Pair.of(ROOT_ID, expectedType),
                fileSchema,
                new ResolvingReadBuilder(),
                AccessByID.instance());
  }
A reader that produces Iceberg's internal in-memory object model.

<p>Iceberg's internal in-memory object model produces the types defined in {@link
Type.TypeID#javaClass()}.

@param <T> Java type returned by the reader
iceberg/patched-iceberg-core/src/main/java/org/apache/iceberg/avro/InternalReader.java