Package org.apache.iceberg.avro
Class GenericAvroReader<T>
java.lang.Object
org.apache.iceberg.avro.GenericAvroReader<T>
- All Implemented Interfaces:
- org.apache.avro.io.DatumReader<T>,- SupportsRowPosition
public class GenericAvroReader<T>
extends Object
implements org.apache.avro.io.DatumReader<T>, SupportsRowPosition
- 
Method SummaryModifier and TypeMethodDescriptionstatic <D> GenericAvroReader<D> create(org.apache.avro.Schema readSchema) static <D> GenericAvroReader<D> voidsetClassLoader(ClassLoader newClassLoader) voidsetRenames(Map<String, String> renames) voidsetRowPositionSupplier(Supplier<Long> posSupplier) voidsetSchema(org.apache.avro.Schema schema) 
- 
Method Details- 
create
- 
create
- 
setSchemapublic void setSchema(org.apache.avro.Schema schema) - Specified by:
- setSchemain interface- org.apache.avro.io.DatumReader<T>
 
- 
setClassLoader
- 
setRenames
- 
setRowPositionSupplier- Specified by:
- setRowPositionSupplierin interface- SupportsRowPosition
 
- 
read- Specified by:
- readin interface- org.apache.avro.io.DatumReader<T>
- Throws:
- IOException
 
 
-