@InterfaceAudience.Private public class RowModel extends Object implements ProtobufMessageHandler, Serializable
<complexType name="Row">
<sequence>
<element name="key" type="base64Binary"></element>
<element name="cell" type="tns:Cell"
maxOccurs="unbounded" minOccurs="1"></element>
</sequence>
</complexType>
BUFFER_SIZE| Constructor and Description |
|---|
RowModel()
Default constructor
|
RowModel(byte[] key)
Constructor
|
RowModel(byte[] key,
int keyOffset,
int keyLength)
Constructor
|
RowModel(byte[] key,
int keyOffset,
int keyLength,
List<CellModel> cells)
Constructor
|
RowModel(byte[] key,
List<CellModel> cells)
Constructor
|
RowModel(String key)
Constructor
|
RowModel(String key,
List<CellModel> cells)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCell(CellModel cell)
Adds a cell to the list of cells for this row
|
boolean |
equals(Object obj) |
List<CellModel> |
getCells()
Returns the cells
|
byte[] |
getKey()
Returns the row key
|
byte[] |
getKeyArray()
Returns the backing row key array
|
int |
getKeyLength() |
int |
getKeyOffset() |
ProtobufMessageHandler |
getObjectFromMessage(org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream is) |
int |
hashCode() |
org.apache.hbase.thirdparty.com.google.protobuf.Message |
messageFromObject()
Convert to model to a protobuf Message object
|
void |
setKey(byte[] key) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcreateProtobufOutput, getObjectFromMessage, getObjectFromMessage, writeProtobufOutputpublic RowModel()
public RowModel(String key)
key - the row keypublic RowModel(byte[] key)
key - the row keypublic RowModel(byte[] key,
int keyOffset,
int keyLength)
key - the row key as represented in the Cellpublic RowModel(String key, List<CellModel> cells)
key - the row keycells - the cellspublic RowModel(byte[] key,
List<CellModel> cells)
key - the row keycells - the cellspublic void addCell(CellModel cell)
cell - the cellpublic byte[] getKey()
public byte[] getKeyArray()
public void setKey(byte[] key)
key - the row keypublic int getKeyOffset()
public int getKeyLength()
public org.apache.hbase.thirdparty.com.google.protobuf.Message messageFromObject()
ProtobufMessageHandlermessageFromObject in interface ProtobufMessageHandlerpublic ProtobufMessageHandler getObjectFromMessage(org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream is) throws IOException
getObjectFromMessage in interface ProtobufMessageHandlerIOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.