public static class BatchWriteRowResponse.RowResult extends Object
构造器和说明 |
---|
BatchWriteRowResponse.RowResult(String tableName,
Row row,
ConsumedCapacity consumedCapacity,
int index)
internal use
|
BatchWriteRowResponse.RowResult(String tableName,
Row row,
Error error,
int index)
internal use
|
限定符和类型 | 方法和说明 |
---|---|
ConsumedCapacity |
getConsumedCapacity()
若该行查询成功,则返回消耗的能力单元。
|
Error |
getError()
若该行查询执行失败,则返回具体的错误信息。
|
int |
getIndex()
获取该行在
BatchGetRowRequest 的多行查询参数的索引位置。 |
Row |
getRow()
获取返回的行数据
|
String |
getTableName()
获取该行所在表的名称。
|
boolean |
isSucceed()
判断该行查询是否执行成功。
|
public BatchWriteRowResponse.RowResult(String tableName, Row row, Error error, int index)
public BatchWriteRowResponse.RowResult(String tableName, Row row, ConsumedCapacity consumedCapacity, int index)
public boolean isSucceed()
只有在成功的时候,consumedCapacity
才有效。
只有在执行不成功的时候,error
才有效。
public String getTableName()
若该行查询失败,可以根据表名和索引通过BatchGetRowRequest.getPrimaryKey(String, int)
中获取查询参数进行重试。
public Error getError()
public ConsumedCapacity getConsumedCapacity()
public int getIndex()
BatchGetRowRequest
的多行查询参数的索引位置。
若该行查询失败,可以根据表名和索引通过BatchGetRowRequest.getPrimaryKey(String, int)
中获取查询参数进行重试。
public Row getRow()
Copyright © 2017. All Rights Reserved.