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 readSchema) static <D> GenericAvroReader<D> voidsetClassLoader(ClassLoader newClassLoader) voidsetRenames(Map<String, String> renames) voidsetRowPositionSupplier(Supplier<Long> posSupplier) voidsetSchema(org.apache.avro.Schema schema)
-
Method Details
-
create
-
create
-
setSchema
public void setSchema(org.apache.avro.Schema schema) - Specified by:
setSchemain interfaceorg.apache.avro.io.DatumReader<T>
-
setClassLoader
-
setRenames
-
setRowPositionSupplier
- Specified by:
setRowPositionSupplierin interfaceSupportsRowPosition
-
read
- Specified by:
readin interfaceorg.apache.avro.io.DatumReader<T>- Throws:
IOException
-