|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.rest.model.CellSetModel
@InterfaceAudience.Private public class CellSetModel
Representation of a grouping of cells. May contain cells from more than one row. Encapsulates RowModel and CellModel models.
<complexType name="CellSet">
<sequence>
<element name="row" type="tns:Row" maxOccurs="unbounded"
minOccurs="1"></element>
</sequence>
</complexType>
<complexType name="Row">
<sequence>
<element name="key" type="base64Binary"></element>
<element name="cell" type="tns:Cell"
maxOccurs="unbounded" minOccurs="1"></element>
</sequence>
</complexType>
<complexType name="Cell">
<sequence>
<element name="value" maxOccurs="1" minOccurs="1">
<simpleType>
<restriction base="base64Binary"/>
</simpleType>
</element>
</sequence>
<attribute name="column" type="base64Binary" />
<attribute name="timestamp" type="int" />
</complexType>
| Constructor Summary | |
|---|---|
CellSetModel()
Constructor |
|
CellSetModel(List<RowModel> rows)
|
|
| Method Summary | |
|---|---|
void |
addRow(RowModel row)
Add a row to this cell set |
byte[] |
createProtobufOutput()
|
ProtobufMessageHandler |
getObjectFromMessage(byte[] message)
Initialize the model from a protobuf representation. |
List<RowModel> |
getRows()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CellSetModel()
public CellSetModel(List<RowModel> rows)
rows - the rows| Method Detail |
|---|
public void addRow(RowModel row)
row - the rowpublic List<RowModel> getRows()
public byte[] createProtobufOutput()
createProtobufOutput in interface ProtobufMessageHandler
public ProtobufMessageHandler getObjectFromMessage(byte[] message)
throws IOException
ProtobufMessageHandler
getObjectFromMessage in interface ProtobufMessageHandlermessage - the raw bytes of the protobuf message
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||