org.apache.avro.data
Class Json
java.lang.Object
org.apache.avro.data.Json
public class Json
- extends Object
Utilities for reading and writing arbitrary Json data in Avro format.
Field Summary |
static Schema |
SCHEMA
The schema for Json data. |
Method Summary |
static org.codehaus.jackson.JsonNode |
read(Decoder in)
Read Json data from Avro data. |
static void |
write(org.codehaus.jackson.JsonNode node,
Encoder out)
Write Json data as Avro data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SCHEMA
public static final Schema SCHEMA
- The schema for Json data.
write
public static void write(org.codehaus.jackson.JsonNode node,
Encoder out)
throws IOException
- Write Json data as Avro data.
- Throws:
IOException
read
public static org.codehaus.jackson.JsonNode read(Decoder in)
throws IOException
- Read Json data from Avro data.
- Throws:
IOException
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.