com.baidubce.services.tablestorage.model
Class GetRow

java.lang.Object
  extended by com.baidubce.services.tablestorage.model.TableStorageRow
      extended by com.baidubce.services.tablestorage.model.GetRow

public class GetRow
extends TableStorageRow

Performs GetRow operation on a single row.


Field Summary
 
Fields inherited from class com.baidubce.services.tablestorage.model.TableStorageRow
cells, rowkey, rowSize
 
Constructor Summary
GetRow(String rowkey)
          Constructs a get row object with target rowkey.
 
Method Summary
 GetRow addCell(String name)
          Add a cell with column name to this get row object.
 int getMaxVersions()
          Get maxVersions in GetRow.
 void setMaxVersions(int maxVersions)
          Set maxVersions.
 String toJsonString()
          Convert this row to json string.
 
Methods inherited from class com.baidubce.services.tablestorage.model.TableStorageRow
checkRow, getCells, getRowkey, getRowSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetRow

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

Parameters:
rowkey - The target rowkey.
Method Detail

getMaxVersions

public int getMaxVersions()
Get maxVersions in GetRow.

Returns:
The target maxVersions.

setMaxVersions

public void setMaxVersions(int maxVersions)
Set maxVersions.

Parameters:
maxVersions - The target maxVersions.

addCell

public GetRow addCell(String name)
Add a cell with column name to this get row object.

Parameters:
name - The column name of this cell.
Returns:
This get row object.

toJsonString

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

Overrides:
toJsonString in class TableStorageRow
Returns:
The json string represent this row.


Copyright © 2020. All rights reserved.