com.baidubce.services.tablestorage.model
Class TableStorageRow

java.lang.Object
  extended by com.baidubce.services.tablestorage.model.TableStorageRow
Direct Known Subclasses:
DeleteRow, GetRow, PutRow

public class TableStorageRow
extends Object

Represent a single row in TableStorage.


Field Summary
protected  List<TableStorageCell> cells
           
protected  String rowkey
           
protected  int rowSize
           
 
Constructor Summary
TableStorageRow(String rowkey)
          Constructs a row object with target rowkey.
 
Method Summary
protected static void checkRow(TableStorageRow row)
          Check this table storage row object
 List<TableStorageCell> getCells()
          Get the list of cells of this get object.
 String getRowkey()
          Get the rowkey of this get object.
 int getRowSize()
          Get the size of this row.
 String toJsonString()
          Convert this row to json string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rowkey

protected String rowkey

cells

protected List<TableStorageCell> cells

rowSize

protected int rowSize
Constructor Detail

TableStorageRow

public TableStorageRow(String rowkey)
Constructs a row object with target rowkey.

Parameters:
rowkey - The target rowkey.
Method Detail

getRowkey

public String getRowkey()
Get the rowkey of this get object.

Returns:
Return the rowkey of this get object.

getCells

public List<TableStorageCell> getCells()
Get the list of cells of this get object.

Returns:
The list of cells of this get object.

getRowSize

public int getRowSize()
Get the size of this row.

Returns:
Get the size of this row.

checkRow

protected static void checkRow(TableStorageRow row)
Check this table storage row object


toJsonString

public String toJsonString()
Convert this row to json string.

Returns:
The json string represent this row.


Copyright © 2020. All rights reserved.