com.baidubce.services.tablestorage.model
Class GetRowRequest

java.lang.Object
  extended by com.baidubce.model.AbstractBceRequest
      extended by com.baidubce.services.tablestorage.model.AbstractTableStorageRequest
          extended by com.baidubce.services.tablestorage.model.GetRowRequest

public class GetRowRequest
extends AbstractTableStorageRequest

Represent the request for GetRow operation.


Constructor Summary
GetRowRequest(String tableName, String rowkey)
          Constructs a get row request with target table name and rowkey.
 
Method Summary
 GetRowRequest addCell(String column)
          Add a cell with column name to this request.
 int getMaxVersions()
          Get maxVersion in GetRowRequest.
 void setMaxVersions(int maxVersion)
          Set maxVersion.
 String toJsonString()
          Convert to this request object to json string.
 
Methods inherited from class com.baidubce.services.tablestorage.model.AbstractTableStorageRequest
getTableName, withRequestCredentials
 
Methods inherited from class com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetRowRequest

public GetRowRequest(String tableName,
                     String rowkey)
Constructs a get row request with target table name and rowkey.

Parameters:
tableName - The target table name.
rowkey - The target rowkey.
Method Detail

getMaxVersions

public int getMaxVersions()
Get maxVersion in GetRowRequest.

Returns:
The target maxVersion.

setMaxVersions

public void setMaxVersions(int maxVersion)
Set maxVersion.

Parameters:
maxVersion - The target maxVersion.

addCell

public GetRowRequest addCell(String column)
Add a cell with column name to this request.

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

toJsonString

public String toJsonString()
Convert to this request object to json string.

Specified by:
toJsonString in class AbstractTableStorageRequest
Returns:
The json string represent this get row request.


Copyright © 2020. All rights reserved.