@InterfaceAudience.Private public class RowModel extends Object implements ProtobufMessageHandler, Serializable
 <complexType name="Row">
   <sequence>
     <element name="key" type="base64Binary"></element>
     <element name="cell" type="tns:Cell" 
       maxOccurs="unbounded" minOccurs="1"></element>
   </sequence>
 </complexType>
 | Constructor and Description | 
|---|
| 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 | 
| Modifier and Type | Method and Description | 
|---|---|
| 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) | 
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 void addCell(CellModel cell)
cell - the cellpublic byte[] getKey()
public void setKey(byte[] key)
key - the row keypublic byte[] createProtobufOutput()
createProtobufOutput in interface ProtobufMessageHandlerpublic ProtobufMessageHandler getObjectFromMessage(byte[] message) throws IOException
ProtobufMessageHandlergetObjectFromMessage in interface ProtobufMessageHandlermessage - the raw bytes of the protobuf messageIOExceptionCopyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.