Package org.apache.iceberg.avro
Class NameMappingDatumReader<D>
java.lang.Object
org.apache.iceberg.avro.NameMappingDatumReader<D>
- Type Parameters:
- D- Java class of datums produced by this reader
- All Implemented Interfaces:
- org.apache.avro.io.DatumReader<D>,- SupportsRowPosition
public class NameMappingDatumReader<D>
extends Object
implements org.apache.avro.io.DatumReader<D>, SupportsRowPosition
A delegating DatumReader that applies a name mapping to a file schema to enable reading Avro
 files that were written without field IDs.
- 
Constructor SummaryConstructorsConstructorDescriptionNameMappingDatumReader(NameMapping nameMapping, org.apache.avro.io.DatumReader<D> wrapped) 
- 
Method Summary
- 
Constructor Details- 
NameMappingDatumReader
 
- 
- 
Method Details- 
setSchemapublic void setSchema(org.apache.avro.Schema newFileSchema) - Specified by:
- setSchemain interface- org.apache.avro.io.DatumReader<D>
 
- 
read- Specified by:
- readin interface- org.apache.avro.io.DatumReader<D>
- Throws:
- IOException
 
- 
setRowPositionSupplier- Specified by:
- setRowPositionSupplierin interface- SupportsRowPosition
 
 
-