com.aliyun.openservices.ots.model
类 BatchWriteRowRequest

java.lang.Object
  继承者 com.aliyun.openservices.ots.model.BatchWriteRowRequest

public class BatchWriteRowRequest
extends Object


构造方法摘要
BatchWriteRowRequest()
           
 
方法摘要
 void addRowDeleteChange(RowDeleteChange rowDeleteChange)
          添加某个表的DeleteRow参数。
 void addRowPutChange(RowPutChange rowPutChange)
          添加某个表的PutRow参数。
 void addRowUpdateChange(RowUpdateChange rowUpdateChange)
          添加某个表的UpdateRow参数。
 Map<String,List<RowDeleteChange>> getRowDeleteChange()
          获取所有表的DeleteRow参数。
 RowDeleteChange getRowDeleteChange(String tableName, int index)
          根据表名和索引返回DeleteRow参数。
 Map<String,List<RowPutChange>> getRowPutChange()
          获取所有表的PutRow参数。
 RowPutChange getRowPutChange(String tableName, int index)
          根据表名和索引返回PutRow参数。
 Map<String,List<RowUpdateChange>> getRowUpdateChange()
          获取所有表的UpdateRow参数。
 RowUpdateChange getRowUpdateChange(String tableName, int index)
          根据表名和索引返回UpdateRow参数。
 boolean isEmpty()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

BatchWriteRowRequest

public BatchWriteRowRequest()
方法详细信息

addRowPutChange

public void addRowPutChange(RowPutChange rowPutChange)
添加某个表的PutRow参数。在BatchWriteRowRequest中,相同表的PutRow参数会被组织在一起。

参数:
rowPutChange - PutRow参数

getRowPutChange

public RowPutChange getRowPutChange(String tableName,
                                    int index)
根据表名和索引返回PutRow参数。 BatchWriteRowResult中返回的多行结果允许部分成功部分失败,返回结果按表组织,且表内行的顺序与BatchWriteRowRequest中一一对应。 若用户需要对BatchWriteRowResult中部分失败的行进行重试,则可以根据失败的行所在的表的表名以及在其在返回结果列表内的索引,从BatchWriteRowRequest中反查即可得到请求参数。

参数:
tableName - 表的名称
index - 该行在参数列表中得索引
返回:
PutRow参数

getRowPutChange

public Map<String,List<RowPutChange>> getRowPutChange()
获取所有表的PutRow参数。

返回:
所有表的PutRow参数。

addRowUpdateChange

public void addRowUpdateChange(RowUpdateChange rowUpdateChange)
添加某个表的UpdateRow参数。在BatchWriteRowRequest中,相同表的UpdateRow参数会被组织在一起。

参数:
rowUpdateChange - UpdateRow参数

getRowUpdateChange

public RowUpdateChange getRowUpdateChange(String tableName,
                                          int index)
根据表名和索引返回UpdateRow参数。 BatchWriteRowResult中返回的多行结果允许部分成功部分失败,返回结果按表组织,且表内行的顺序与BatchWriteRowRequest中一一对应。 若用户需要对BatchWriteRowResult中部分失败的行进行重试,则可以根据失败的行所在的表的表名以及在其在返回结果列表内的索引,从BatchWriteRowRequest中反查即可得到请求参数。

参数:
tableName - 表的名称
index - 该行在参数列表中得索引
返回:
UpdateRow参数

getRowUpdateChange

public Map<String,List<RowUpdateChange>> getRowUpdateChange()
获取所有表的UpdateRow参数。

返回:
所有表的UpdateRow参数。

addRowDeleteChange

public void addRowDeleteChange(RowDeleteChange rowDeleteChange)
添加某个表的DeleteRow参数。在BatchWriteRowRequest中,相同表的DeleteRow参数会被组织在一起。

参数:
rowDeleteChange - DeleteRow参数

getRowDeleteChange

public RowDeleteChange getRowDeleteChange(String tableName,
                                          int index)
根据表名和索引返回DeleteRow参数。 BatchWriteRowResult中返回的多行结果允许部分成功部分失败,返回结果按表组织,且表内行的顺序与BatchWriteRowRequest中一一对应。 若用户需要对BatchWriteRowResult中部分失败的行进行重试,则可以根据失败的行所在的表的表名以及在其在返回结果列表内的索引,从BatchWriteRowRequest中反查即可得到请求参数。

参数:
tableName - 表的名称
index - 该行在参数列表中得索引
返回:
DeleteRow参数

getRowDeleteChange

public Map<String,List<RowDeleteChange>> getRowDeleteChange()
获取所有表的DeleteRow参数。

返回:
所有表的DeleteRow参数。

isEmpty

public boolean isEmpty()


Copyright © 2014. All Rights Reserved.