|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.rest.serializer.AbstractRestSerializer
org.apache.hadoop.hbase.rest.serializer.JSONSerializer
public class JSONSerializer
Serializes objects into JSON strings and prints them back out on the output stream. It should be noted that this JSON implementation uses annotations on the objects to be serialized. Since these annotations are used to describe the serialization of the objects the only method that is implemented is writeOutput(Object o). The other methods in the interface do not need to be implemented.
Field Summary |
---|
Fields inherited from class org.apache.hadoop.hbase.rest.serializer.AbstractRestSerializer |
---|
prettyPrint, response |
Constructor Summary | |
---|---|
JSONSerializer(javax.servlet.http.HttpServletResponse response)
|
Method Summary | |
---|---|
void |
serializeCell(Cell cell)
serialize a cell object to the output stream Implementation of this method is optional, IF all the work is done in the writeOutput(Object o) method |
void |
serializeCellArray(Cell[] cells)
serialize a Cell array to the output stream |
void |
serializeColumnDescriptor(HColumnDescriptor column)
serialize an HColumnDescriptor to the output stream. |
void |
serializeDatabaseMetadata(DatabaseModel.DatabaseMetadata databaseMetadata)
serialize the database metadata Implementation of this method is optional, IF all the work is done in the writeOutput(Object o) method |
void |
serializeRegionData(TableModel.Regions regions)
serialize the region data for a table to the output stream Implementation of this method is optional, IF all the work is done in the writeOutput(Object o) method |
void |
serializeRowResult(RowResult rowResult)
serialize a RowResult object to the output stream Implementation of this method is optional, IF all the work is done in the writeOutput(Object o) method |
void |
serializeRowResultArray(RowResult[] rows)
serialize a RowResult array to the output stream Implementation of this method is optional, IF all the work is done in the writeOutput(Object o) method |
void |
serializeScannerIdentifier(ScannerIdentifier scannerIdentifier)
serialize the ScannerIdentifier object to the output stream Implementation of this method is optional, IF all the work is done in the writeOutput(Object o) method |
void |
serializeStatusMessage(Status.StatusMessage message)
serialize the status message object to the output stream Implementation of this method is optional, IF all the work is done in the writeOutput(Object o) method |
void |
serializeTableDescriptor(HTableDescriptor tableDescriptor)
serialize the HTableDescriptor object Implementation of this method is optional, IF all the work is done in the writeOutput(Object o) method |
void |
serializeTimestamps(TimestampsDescriptor timestampsDescriptor)
serialize a description of the timestamps available for a row to the output stream. |
void |
writeOutput(Object o)
Serializes an object into the appropriate format and writes it to the output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JSONSerializer(javax.servlet.http.HttpServletResponse response)
response
- Method Detail |
---|
public void writeOutput(Object o) throws HBaseRestException
IRestSerializer
HBaseRestException
public void serializeColumnDescriptor(HColumnDescriptor column) throws HBaseRestException
IRestSerializer
HBaseRestException
public void serializeDatabaseMetadata(DatabaseModel.DatabaseMetadata databaseMetadata) throws HBaseRestException
IRestSerializer
HBaseRestException
public void serializeRegionData(TableModel.Regions regions) throws HBaseRestException
IRestSerializer
HBaseRestException
public void serializeTableDescriptor(HTableDescriptor tableDescriptor) throws HBaseRestException
IRestSerializer
HBaseRestException
public void serializeStatusMessage(Status.StatusMessage message) throws HBaseRestException
IRestSerializer
HBaseRestException
public void serializeScannerIdentifier(ScannerIdentifier scannerIdentifier) throws HBaseRestException
IRestSerializer
HBaseRestException
public void serializeRowResult(RowResult rowResult) throws HBaseRestException
IRestSerializer
HBaseRestException
public void serializeRowResultArray(RowResult[] rows) throws HBaseRestException
IRestSerializer
HBaseRestException
public void serializeCell(Cell cell) throws HBaseRestException
IRestSerializer
HBaseRestException
public void serializeCellArray(Cell[] cells) throws HBaseRestException
IRestSerializer
HBaseRestException
public void serializeTimestamps(TimestampsDescriptor timestampsDescriptor) throws HBaseRestException
IRestSerializer
HBaseRestException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |