@InterfaceAudience.Private public class CellSetModel extends Object implements Serializable, ProtobufMessageHandler
<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 and Description |
|---|
CellSetModel()
Constructor
|
CellSetModel(List<RowModel> rows) |
| Modifier and Type | Method and Description |
|---|---|
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() |
public void addRow(RowModel row)
row - the rowpublic byte[] createProtobufOutput()
createProtobufOutput in interface ProtobufMessageHandlerpublic ProtobufMessageHandler getObjectFromMessage(byte[] message) throws IOException
ProtobufMessageHandlergetObjectFromMessage in interface ProtobufMessageHandlermessage - the raw bytes of the protobuf messageIOExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.