@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>
Modifier and Type | Field and Description |
---|---|
private List<RowModel> |
rows |
private static long |
serialVersionUID |
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() |
private static final long serialVersionUID
public CellSetModel()
public CellSetModel(List<RowModel> rows)
rows
- the rowspublic 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 messageIOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.