|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.rest.model.RowModel
public class RowModel
Representation of a row. A row is a related set of cells, grouped by common row key. RowModels do not appear in results by themselves. They are always encapsulated within CellSetModels.
<complexType name="Row"> <sequence> <element name="key" type="base64Binary"></element> <element name="cell" type="tns:Cell" maxOccurs="unbounded" minOccurs="1"></element> </sequence> </complexType>
Constructor Summary | |
---|---|
RowModel()
Default constructor |
|
RowModel(byte[] key)
Constructor |
|
RowModel(byte[] key,
List<CellModel> cells)
Constructor |
|
RowModel(String key)
Constructor |
|
RowModel(String key,
List<CellModel> cells)
Constructor |
Method Summary | |
---|---|
void |
addCell(CellModel cell)
Adds a cell to the list of cells for this row |
byte[] |
createProtobufOutput()
|
List<CellModel> |
getCells()
|
byte[] |
getKey()
|
ProtobufMessageHandler |
getObjectFromMessage(byte[] message)
Initialize the model from a protobuf representation. |
void |
setKey(byte[] key)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RowModel()
public RowModel(String key)
key
- the row keypublic RowModel(byte[] key)
key
- the row keypublic RowModel(String key, List<CellModel> cells)
key
- the row keycells
- the cellspublic RowModel(byte[] key, List<CellModel> cells)
key
- the row keycells
- the cellsMethod Detail |
---|
public void addCell(CellModel cell)
cell
- the cellpublic byte[] getKey()
public void setKey(byte[] key)
key
- the row keypublic List<CellModel> getCells()
public byte[] createProtobufOutput()
createProtobufOutput
in interface ProtobufMessageHandler
public ProtobufMessageHandler getObjectFromMessage(byte[] message) throws IOException
ProtobufMessageHandler
getObjectFromMessage
in interface ProtobufMessageHandler
message
- the raw bytes of the protobuf message
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |