public static class Json.ObjectWriter extends Object implements DatumWriter<Object>
DatumWriter for arbitrary Json data using the object model described
 in JsonProperties.| Constructor and Description | 
|---|
| ObjectWriter() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | setSchema(Schema schema)Set the schema. | 
| void | write(Object datum,
     Encoder out)Write a datum. | 
public void setSchema(Schema schema)
DatumWritersetSchema in interface DatumWriter<Object>public void write(Object datum, Encoder out) throws IOException
DatumWriterwrite in interface DatumWriter<Object>IOExceptionCopyright © 2009–2020 The Apache Software Foundation. All rights reserved.