com.aliyun.openservices.ots.model
类 BatchGetRowRequest
java.lang.Object
com.aliyun.openservices.ots.model.BatchGetRowRequest
public class BatchGetRowRequest
- extends Object
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BatchGetRowRequest
public BatchGetRowRequest()
addMultiRowQueryCriteria
public void addMultiRowQueryCriteria(MultiRowQueryCriteria criteria)
- 增加某个表的多行查询参数。若该表已经添加过查询条件,则之前的查询条件会被覆盖。
- 参数:
criteria - 单行查询条件
getPrimaryKey
public RowPrimaryKey getPrimaryKey(String tableName,
int index)
- 根据表名和索引返回某一行的主键。
BatchGetRowResult中返回的多行结果允许部分成功部分失败,返回结果按表组织,且表内行的顺序与BatchGetRowRequest中一一对应。
若用户需要对BatchGetRowResult中部分失败的GetRow查询进行重试,则可以根据失败的查询所在的表的表名以及在其在返回结果列表内的索引,从BatchGetRowRequest中反查即可得到对应的行的主键。
- 参数:
tableName - 表的名称index - 该行在参数列表中得索引
- 返回:
- 行的主键
getCriteriasByTable
public Map<String,MultiRowQueryCriteria> getCriteriasByTable()
- 获取按表组织的多行查询参数。
- 返回:
- 多行查询参数。
isEmpty
public boolean isEmpty()
Copyright © 2014. All Rights Reserved.