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 longFields inherited from interface org.apache.hadoop.hbase.rest.ProtobufMessageHandler
BUFFER_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a row to this cell setgetObjectFromMessage(org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream cis) getRows()Returns the rowsorg.apache.hbase.thirdparty.com.google.protobuf.MessageConvert to model to a protobuf Message objectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.rest.ProtobufMessageHandler
createProtobufOutput, getObjectFromMessage, getObjectFromMessage, writeProtobufOutput
-
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 -
messageFromObject
Description copied from interface:ProtobufMessageHandlerConvert to model to a protobuf Message object- Specified by:
messageFromObjectin interfaceProtobufMessageHandler- Returns:
- the protobuf Message object
-
getObjectFromMessage
public ProtobufMessageHandler getObjectFromMessage(org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream cis) throws IOException - Specified by:
getObjectFromMessagein interfaceProtobufMessageHandler- Throws:
IOException
-