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
Modifier and TypeFieldDescriptionprivate static final long
Fields inherited from interface org.apache.hadoop.hbase.rest.ProtobufMessageHandler
BUFFER_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add 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.Message
Convert to model to a protobuf Message objectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:ProtobufMessageHandler
Convert to model to a protobuf Message object- Specified by:
messageFromObject
in interfaceProtobufMessageHandler
- Returns:
- the protobuf Message object
-
getObjectFromMessage
public ProtobufMessageHandler getObjectFromMessage(org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream cis) throws IOException - Specified by:
getObjectFromMessage
in interfaceProtobufMessageHandler
- Throws:
IOException
-