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
Modifier and TypeFieldDescriptionprivate byte[]
private int
private int
private static final long
Fields inherited from interface org.apache.hadoop.hbase.rest.ProtobufMessageHandler
BUFFER_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a cell to the list of cells for this rowboolean
getCells()
Returns the cellsbyte[]
getKey()
Returns the row keybyte[]
Returns the backing row key arrayint
int
getObjectFromMessage
(org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream is) int
hashCode()
org.apache.hbase.thirdparty.com.google.protobuf.Message
Convert to model to a protobuf Message objectvoid
setKey
(byte[] key) toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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: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 is) throws IOException - Specified by:
getObjectFromMessage
in interfaceProtobufMessageHandler
- Throws:
IOException
-
equals
-
hashCode
-
toString
-