Package org.apache.iceberg.avro
Class InternalReader<T>
java.lang.Object
org.apache.iceberg.avro.InternalReader<T>
- Type Parameters:
- T- Java type returned by the reader
- All Implemented Interfaces:
- org.apache.avro.io.DatumReader<T>,- SupportsCustomTypes,- SupportsRowPosition
public class InternalReader<T>
extends Object
implements org.apache.avro.io.DatumReader<T>, SupportsRowPosition, SupportsCustomTypes
A reader that produces Iceberg's internal in-memory object model.
 
Iceberg's internal in-memory object model produces the types defined in Type.TypeID.javaClass().
- 
Method SummaryModifier and TypeMethodDescriptionstatic <D> InternalReader<D> setCustomType(int fieldId, Class<? extends StructLike> structClass) voidsetCustomTypes(Class<? extends StructLike> rootType, Map<Integer, Class<? extends StructLike>> typesById) setRootType(Class<? extends StructLike> rootClass) voidsetRowPositionSupplier(Supplier<Long> posSupplier) voidsetSchema(org.apache.avro.Schema schema) 
- 
Method Details- 
create
- 
setSchemapublic void setSchema(org.apache.avro.Schema schema) - Specified by:
- setSchemain interface- org.apache.avro.io.DatumReader<T>
 
- 
setCustomTypespublic void setCustomTypes(Class<? extends StructLike> rootType, Map<Integer, Class<? extends StructLike>> typesById) - Specified by:
- setCustomTypesin interface- SupportsCustomTypes
 
- 
setRootType
- 
setCustomType
- 
setRowPositionSupplier- Specified by:
- setRowPositionSupplierin interface- SupportsRowPosition
 
- 
read- Specified by:
- readin interface- org.apache.avro.io.DatumReader<T>
- Throws:
- IOException
 
 
-