public class BatchGetRowResponse extends Response implements Jsonizable
| Modifier and Type | Class and Description |
|---|---|
static class |
BatchGetRowResponse.RowResult
BatchGetRow批量操作中单行查询的结果。
若isSucceed为true,则代表该行查询操作成功,可以通过getRow获取单行查询的结果。
若isSucceed为false,则代表该行查询操作失败,可以通过getError获取失败的错误信息。
|
| Constructor and Description |
|---|
BatchGetRowResponse(Response meta)
internal use
|
| Modifier and Type | Method and Description |
|---|---|
void |
addResult(BatchGetRowResponse.RowResult result)
internal use
|
List<BatchGetRowResponse.RowResult> |
getBatchGetRowResult(String tableName)
获取某个表的所有行查询结果。
|
List<BatchGetRowResponse.RowResult> |
getFailedRows()
获取所有查询操作执行失败的行。
|
void |
getResult(List<BatchGetRowResponse.RowResult> succeedRows,
List<BatchGetRowResponse.RowResult> failedRows)
获取所有执行成功过的行以及所有执行失败的行。
|
List<BatchGetRowResponse.RowResult> |
getSucceedRows()
获取所有查询操作执行成功的行。
|
Map<String,List<BatchGetRowResponse.RowResult>> |
getTableToRowsResult()
返回所有表所有行的查询结果。
|
boolean |
isAllSucceed()
是否所有行查询操作都执行成功。
|
String |
jsonize() |
void |
jsonize(StringBuilder sb,
String newline) |
getRequestId, getTraceId, setRequestId, setTraceIdpublic BatchGetRowResponse(Response meta)
public void addResult(BatchGetRowResponse.RowResult result)
public List<BatchGetRowResponse.RowResult> getBatchGetRowResult(String tableName)
tableName - 表的名称public Map<String,List<BatchGetRowResponse.RowResult>> getTableToRowsResult()
public List<BatchGetRowResponse.RowResult> getFailedRows()
public List<BatchGetRowResponse.RowResult> getSucceedRows()
public void getResult(List<BatchGetRowResponse.RowResult> succeedRows, List<BatchGetRowResponse.RowResult> failedRows)
succeedRows - 所有执行成功的行failedRows - 所有执行失败的行public boolean isAllSucceed()
public String jsonize()
jsonize in interface Jsonizablepublic void jsonize(StringBuilder sb, String newline)
jsonize in interface JsonizableCopyright © 2024. All Rights Reserved.