public static class Json.ObjectReader extends Object implements DatumReader<Object>
DatumReader
for arbitrary Json data using the object model described
in JsonProperties
.Constructor and Description |
---|
ObjectReader() |
Modifier and Type | Method and Description |
---|---|
Object |
read(Object reuse,
Decoder in)
Read a datum.
|
void |
setSchema(Schema schema)
Set the writer's schema.
|
public void setSchema(Schema schema)
DatumReader
setSchema
in interface DatumReader<Object>
public Object read(Object reuse, Decoder in) throws IOException
DatumReader
read
in interface DatumReader<Object>
IOException
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.