Package org.apache.avro.data
Class Json.ObjectReader
java.lang.Object
org.apache.avro.data.Json.ObjectReader
- All Implemented Interfaces:
DatumReader<Object>
- Enclosing class:
Json
DatumReader for arbitrary Json data using the object model described
in JsonProperties.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ObjectReader
public ObjectReader()
-
-
Method Details
-
setSchema
Description copied from interface:DatumReaderSet the writer's schema.- Specified by:
setSchemain interfaceDatumReader<Object>
-
read
Description copied from interface:DatumReaderRead a datum. Traverse the schema, depth-first, reading all leaf values in the schema into a datum that is returned. If the provided datum is non-null it may be reused and returned.- Specified by:
readin interfaceDatumReader<Object>- Throws:
IOException
-