| Constructor and Description |
|---|
BatchGetRowRequest() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMultiRowQueryCriteria(MultiRowQueryCriteria criteria)
增加某个表的多行查询参数。若该表已经添加过查询条件,则之前的查询条件会被覆盖。
|
BatchGetRowRequest |
createRequestForRetry(List<BatchGetRowResponse.RowResult> failedRows)
根据请求返回的结果创建新的请求用于重试。
|
MultiRowQueryCriteria |
getCriteria(String tableName)
获取指定表的多行查询参数。
|
Map<String,MultiRowQueryCriteria> |
getCriteriasByTable()
获取按表组织的多行查询参数。
|
String |
getOperationName() |
PrimaryKey |
getPrimaryKey(String tableName,
int index)
根据表名和索引返回某一行的主键。
BatchGetRowResult中返回的多行结果允许部分成功部分失败,返回结果按表组织,且表内行的顺序与BatchGetRowRequest中一一对应。
若用户需要对BatchGetRowResult中部分失败的GetRow查询进行重试,则可以根据失败的查询所在的表的表名以及在其在返回结果列表内的索引,从BatchGetRowRequest中反查即可得到对应的行的主键。
|
boolean |
isEmpty() |
public String getOperationName()
getOperationName in interface Requestpublic void addMultiRowQueryCriteria(MultiRowQueryCriteria criteria)
criteria - 单行查询条件public PrimaryKey getPrimaryKey(String tableName, int index)
tableName - 表的名称index - 该行在参数列表中得索引public Map<String,MultiRowQueryCriteria> getCriteriasByTable()
public MultiRowQueryCriteria getCriteria(String tableName)
tableName - 表的名称public BatchGetRowRequest createRequestForRetry(List<BatchGetRowResponse.RowResult> failedRows)
failedRows - 返回结果中查询失败的行public boolean isEmpty()
Copyright © 2024. All Rights Reserved.