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) void
setRowPositionSupplier
(Supplier<Long> posSupplier) void
setSchema
(org.apache.avro.Schema schema)
-
Method Details
-
create
-
setSchema
public void setSchema(org.apache.avro.Schema schema) - Specified by:
setSchema
in interfaceorg.apache.avro.io.DatumReader<T>
-
setRootType
-
setCustomType
-
setRowPositionSupplier
- Specified by:
setRowPositionSupplier
in interfaceSupportsRowPosition
-
read
- Specified by:
read
in interfaceorg.apache.avro.io.DatumReader<T>
- Throws:
IOException
-