public class JsonRowSerializer extends java.lang.Object implements RowSerializer
| Constructor and Description |
|---|
JsonRowSerializer(java.nio.charset.Charset charset) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
serialize(byte[] rowKey,
ResultCell[] cells) |
void |
serialize(byte[] rowKey,
ResultCell[] cells,
java.io.OutputStream out)
Serializes the given row and cells to the provided OutputStream
|
public java.lang.String serialize(byte[] rowKey,
ResultCell[] cells)
serialize in interface RowSerializerrowKey - the row key of the row being serializedcells - the cells of the row being serializedpublic void serialize(byte[] rowKey,
ResultCell[] cells,
java.io.OutputStream out)
throws java.io.IOException
RowSerializerserialize in interface RowSerializerrowKey - the row's keycells - the cells to serializeout - the OutputStream to serialize tojava.io.IOException - if unable to serialize the row