|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttl.lin.data.JsonWritable
public class JsonWritable
Writable representing a JSON object.
| Constructor Summary | |
|---|---|
JsonWritable()
Creates an empty JsonWritable. |
|
JsonWritable(String s)
Creates a JsonWritable with an initial value. |
|
| Method Summary | |
|---|---|
static JsonWritable |
create(byte[] bytes)
|
static JsonWritable |
create(DataInput in)
|
com.google.gson.JsonObject |
getJsonObject()
|
void |
readFields(DataInput in)
Deserializes a JsonWritable object. |
byte[] |
serialize()
Returns the serialized representation of this object as a byte array. |
String |
toString()
|
void |
write(DataOutput out)
Serializes this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JsonWritable()
JsonWritable.
public JsonWritable(String s)
JsonWritable with an initial value.
| Method Detail |
|---|
public void readFields(DataInput in)
throws IOException
JsonWritable object.
readFields in interface org.apache.hadoop.io.Writablein - source for raw byte representation
IOException
public void write(DataOutput out)
throws IOException
write in interface org.apache.hadoop.io.Writableout - where to write the raw byte representation
IOException
public byte[] serialize()
throws IOException
IOExceptionpublic com.google.gson.JsonObject getJsonObject()
public String toString()
toString in class Object
public static JsonWritable create(DataInput in)
throws IOException
IOException
public static JsonWritable create(byte[] bytes)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||