public class GenericAvroReader<T> extends java.lang.Object implements org.apache.avro.io.DatumReader<T>, SupportsRowPosition
Modifier and Type | Method and Description |
---|---|
static <D> GenericAvroReader<D> |
create(Schema schema) |
static <D> GenericAvroReader<D> |
create(org.apache.avro.Schema schema) |
T |
read(T reuse,
org.apache.avro.io.Decoder decoder) |
void |
setClassLoader(java.lang.ClassLoader newClassLoader) |
void |
setRenames(java.util.Map<java.lang.String,java.lang.String> renames) |
void |
setRowPositionSupplier(java.util.function.Supplier<java.lang.Long> posSupplier) |
void |
setSchema(org.apache.avro.Schema schema) |
public static <D> GenericAvroReader<D> create(Schema schema)
public static <D> GenericAvroReader<D> create(org.apache.avro.Schema schema)
public void setSchema(org.apache.avro.Schema schema)
setSchema
in interface org.apache.avro.io.DatumReader<T>
public void setClassLoader(java.lang.ClassLoader newClassLoader)
public void setRenames(java.util.Map<java.lang.String,java.lang.String> renames)
public void setRowPositionSupplier(java.util.function.Supplier<java.lang.Long> posSupplier)
setRowPositionSupplier
in interface SupportsRowPosition