Package org.apache.avro.data
Class Json.ObjectWriter
java.lang.Object
org.apache.avro.data.Json.ObjectWriter
- All Implemented Interfaces:
DatumWriter<Object>
- Enclosing class:
Json
DatumWriter for arbitrary Json data using the object model described
in JsonProperties.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ObjectWriter
public ObjectWriter()
-
-
Method Details
-
setSchema
Description copied from interface:DatumWriterSet the schema.- Specified by:
setSchemain interfaceDatumWriter<Object>
-
write
Description copied from interface:DatumWriterWrite a datum. Traverse the schema, depth first, writing each leaf value in the schema from the datum to the output.- Specified by:
writein interfaceDatumWriter<Object>- Throws:
IOException
-