public class DatumReaderInstance extends Object
| Constructor and Description |
|---|
DatumReaderInstance() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.avro.io.DatumReader<Object> |
from(String writerSchemaDefinition,
AvroRecordType avroRecordType)
This method is used to create Avro datum reader for deserialization.
|
public static org.apache.avro.io.DatumReader<Object> from(String writerSchemaDefinition, AvroRecordType avroRecordType) throws InstantiationException, IllegalAccessException
writerSchemaDefinition - Avro record writer schema.InstantiationException - can be thrown for readerClass.newInstance()
from java.lang.Class implementationIllegalAccessException - can be thrown readerClass.newInstance() from
java.lang.Class implementationCopyright © 2024. All rights reserved.