Class ProjectionDatumReader<D>

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

public class ProjectionDatumReader<D> extends Object implements org.apache.avro.io.DatumReader<D>, SupportsRowPosition
  • Constructor Details

    • ProjectionDatumReader

      public ProjectionDatumReader(Function<org.apache.avro.Schema,org.apache.avro.io.DatumReader<?>> getReader, Schema expectedSchema, Map<String,String> renames, NameMapping nameMapping)
  • Method Details

    • setRowPositionSupplier

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

      public void setSchema(org.apache.avro.Schema newFileSchema)
      Specified by:
      setSchema in interface org.apache.avro.io.DatumReader<D>
    • read

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