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>,SupportsRowPosition
public class InternalReader<T>
extends Object
implements org.apache.avro.io.DatumReader<T>, SupportsRowPosition
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) 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>
-
setRootType
-
setCustomType
-
setRowPositionSupplier
- Specified by:
setRowPositionSupplierin interfaceSupportsRowPosition
-
read
- Specified by:
readin interfaceorg.apache.avro.io.DatumReader<T>- Throws:
IOException
-