Package org.apache.iceberg.avro
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 Summary
ConstructorDescriptionProjectionDatumReader
(Function<org.apache.avro.Schema, org.apache.avro.io.DatumReader<?>> getReader, Schema expectedSchema, Map<String, String> renames, NameMapping nameMapping) -
Method Summary
-
Constructor Details
-
ProjectionDatumReader
-
-
Method Details
-
setRowPositionSupplier
- Specified by:
setRowPositionSupplier
in interfaceSupportsRowPosition
-
setSchema
public void setSchema(org.apache.avro.Schema newFileSchema) - Specified by:
setSchema
in interfaceorg.apache.avro.io.DatumReader<D>
-
read
- Specified by:
read
in interfaceorg.apache.avro.io.DatumReader<D>
- Throws:
IOException
-