public class AvroReader<T> extends Object implements SchemaReader<T>
| Constructor and Description |
|---|
AvroReader(org.apache.avro.Schema schema) |
AvroReader(org.apache.avro.Schema schema,
ClassLoader classLoader,
boolean jsr310ConversionEnabled) |
AvroReader(org.apache.avro.Schema writerSchema,
org.apache.avro.Schema readerSchema,
ClassLoader classLoader,
boolean jsr310ConversionEnabled) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Object> |
getNativeSchema() |
T |
read(byte[] bytes,
int offset,
int length) |
T |
read(InputStream inputStream) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitread, read, read, setSchemaInfoProviderpublic AvroReader(org.apache.avro.Schema schema)
public AvroReader(org.apache.avro.Schema schema,
ClassLoader classLoader,
boolean jsr310ConversionEnabled)
public AvroReader(org.apache.avro.Schema writerSchema,
org.apache.avro.Schema readerSchema,
ClassLoader classLoader,
boolean jsr310ConversionEnabled)
public T read(byte[] bytes, int offset, int length)
read in interface SchemaReader<T>public T read(InputStream inputStream)
read in interface SchemaReader<T>public Optional<Object> getNativeSchema()
getNativeSchema in interface SchemaReader<T>Copyright © 2017–2021 Apache Software Foundation. All rights reserved.