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