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)
DatumWriter
setSchema
in interface DatumWriter<Object>
public void write(Object datum, Encoder out) throws IOException
DatumWriter
write
in interface DatumWriter<Object>
IOException
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.