Class RowModel
java.lang.Object
org.apache.hadoop.hbase.rest.model.RowModel
- All Implemented Interfaces:
Serializable,ProtobufMessageHandler
Representation of a row. A row is a related set of cells, grouped by common row key. RowModels do
not appear in results by themselves. They are always encapsulated within CellSetModels.
<complexType name="Row">
<sequence>
<element name="key" type="base64Binary"></element>
<element name="cell" type="tns:Cell"
maxOccurs="unbounded" minOccurs="1"></element>
</sequence>
</complexType>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]private intprivate intprivate static final longFields inherited from interface org.apache.hadoop.hbase.rest.ProtobufMessageHandler
BUFFER_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a cell to the list of cells for this rowbooleangetCells()Returns the cellsbyte[]getKey()Returns the row keybyte[]Returns the backing row key arrayintintgetObjectFromMessage(org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream is) inthashCode()org.apache.hbase.thirdparty.com.google.protobuf.MessageConvert to model to a protobuf Message objectvoidsetKey(byte[] key) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.rest.ProtobufMessageHandler
createProtobufOutput, getObjectFromMessage, getObjectFromMessage, writeProtobufOutput
-
Field Details
-
serialVersionUID
- See Also:
-
key
-
keyOffset
-
keyLength
-
cells
-
-
Constructor Details
-
RowModel
public RowModel()Default constructor -
RowModel
Constructor- Parameters:
key- the row key
-
RowModel
Constructor- Parameters:
key- the row key
-
RowModel
Constructor- Parameters:
key- the row key as represented in the Cell
-
RowModel
Constructor- Parameters:
key- the row keycells- the cells
-
RowModel
Constructor- Parameters:
key- the row keycells- the cells
-
RowModel
Constructor- Parameters:
key- the row keycells- the cells
-
-
Method Details
-
addCell
Adds a cell to the list of cells for this row- Parameters:
cell- the cell
-
getKey
Returns the row key -
getKeyArray
Returns the backing row key array -
setKey
- Parameters:
key- the row key
-
getKeyOffset
-
getKeyLength
-
getCells
Returns the cells -
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 is) throws IOException - Specified by:
getObjectFromMessagein interfaceProtobufMessageHandler- Throws:
IOException
-
equals
-
hashCode
-
toString
-