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 Summary
Modifier and TypeMethodDescriptionstatic <D> GenericAvroReader<D>
create
(org.apache.avro.Schema schema) static <D> GenericAvroReader<D>
void
setClassLoader
(ClassLoader newClassLoader) void
setRenames
(Map<String, String> renames) void
setRowPositionSupplier
(Supplier<Long> posSupplier) void
setSchema
(org.apache.avro.Schema schema)
-
Method Details
-
create
-
create
-
setSchema
public void setSchema(org.apache.avro.Schema schema) - Specified by:
setSchema
in interfaceorg.apache.avro.io.DatumReader<T>
-
setClassLoader
-
setRenames
-
setRowPositionSupplier
- Specified by:
setRowPositionSupplier
in interfaceSupportsRowPosition
-
read
- Specified by:
read
in interfaceorg.apache.avro.io.DatumReader<T>
- Throws:
IOException
-