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 Summary
Modifier 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
-
setSchema
public void setSchema(org.apache.avro.Schema schema) - Specified by:
setSchemain interfaceorg.apache.avro.io.DatumReader<T>
-
setCustomTypes
public void setCustomTypes(Class<? extends StructLike> rootType, Map<Integer, Class<? extends StructLike>> typesById) - Specified by:
setCustomTypesin interfaceSupportsCustomTypes
-
setRootType
-
setCustomType
-
setRowPositionSupplier
- Specified by:
setRowPositionSupplierin interfaceSupportsRowPosition
-
read
- Specified by:
readin interfaceorg.apache.avro.io.DatumReader<T>- Throws:
IOException
-