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 Details
-
ObjectWriter
public ObjectWriter()
-
-
Method Details
-
setSchema
Description copied from interface:DatumWriter
Set the schema.- Specified by:
setSchema
in interfaceDatumWriter<Object>
-
write
Description copied from interface:DatumWriter
Write a datum. Traverse the schema, depth first, writing each leaf value in the schema from the datum to the output.- Specified by:
write
in interfaceDatumWriter<Object>
- Throws:
IOException
-