Class CellSetModel
java.lang.Object
org.apache.hadoop.hbase.rest.model.CellSetModel
- All Implemented Interfaces:
Serializable,ProtobufMessageHandler
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>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a row to this cell setbyte[]Returns the protobuf represention of the modelgetObjectFromMessage(byte[] message) Initialize the model from a protobuf representation.getRows()Returns the rows
-
Field Details
-
serialVersionUID
- See Also:
-
rows
-
-
Constructor Details
-
CellSetModel
public CellSetModel()Constructor -
CellSetModel
- Parameters:
rows- the rows
-
-
Method Details
-
addRow
Add a row to this cell set- Parameters:
row- the row
-
getRows
Returns the rows -
createProtobufOutput
Description copied from interface:ProtobufMessageHandlerReturns the protobuf represention of the model- Specified by:
createProtobufOutputin interfaceProtobufMessageHandler
-
getObjectFromMessage
Description copied from interface:ProtobufMessageHandlerInitialize the model from a protobuf representation.- Specified by:
getObjectFromMessagein interfaceProtobufMessageHandler- Parameters:
message- the raw bytes of the protobuf message- Returns:
- reference to self for convenience
- Throws:
IOException
-