com.baidubce.services.tablestorage.model
Class PutRowRequest
java.lang.Object
com.baidubce.model.AbstractBceRequest
com.baidubce.services.tablestorage.model.AbstractTableStorageRequest
com.baidubce.services.tablestorage.model.PutRowRequest
public class PutRowRequest
- extends AbstractTableStorageRequest
Represent the request for PutRow operation.
|
Constructor Summary |
PutRowRequest(String tableName,
String rowkey)
Constructs the put row request with target table name and rowkey. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PutRowRequest
public PutRowRequest(String tableName,
String rowkey)
- Constructs the put row request with target table name and rowkey.
- Parameters:
tableName - The target table name.rowkey - The target rowkey.
addCell
public PutRowRequest addCell(String column,
String value)
- Add a cell with column name and value.
- Parameters:
column - The column name of the cell.value - The value of the cell.
- Returns:
toJsonString
public String toJsonString()
- Convert the put row request object to json string.
- Specified by:
toJsonString in class AbstractTableStorageRequest
- Returns:
- The json string represent this put row request.
Copyright © 2020. All rights reserved.