@InterfaceAudience.Private public class MultiResponse extends Object
限定符和类型 | 类和说明 |
---|---|
static class |
AbstractResponse.ResponseType |
构造器和说明 |
---|
MultiResponse() |
限定符和类型 | 方法和说明 |
---|---|
void |
add(byte[] regionName,
int originalIndex,
Object resOrEx)
Add the pair to the container, grouped by the regionName
|
void |
addException(byte[] regionName,
Throwable ie) |
void |
addStatistic(byte[] regionName,
org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.RegionLoadStats stat) |
Throwable |
getException(byte[] regionName) |
Map<byte[],Throwable> |
getExceptions() |
Map<byte[],org.apache.hadoop.hbase.client.MultiResponse.RegionResult> |
getResults() |
int |
size() |
AbstractResponse.ResponseType |
type() |
public int size()
public void add(byte[] regionName, int originalIndex, Object resOrEx)
regionName
- originalIndex
- the original index of the Action (request).resOrEx
- the result or error; will be empty for successful Put and Delete actions.public void addException(byte[] regionName, Throwable ie)
public Throwable getException(byte[] regionName)
public void addStatistic(byte[] regionName, org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.RegionLoadStats stat)
public Map<byte[],org.apache.hadoop.hbase.client.MultiResponse.RegionResult> getResults()
public AbstractResponse.ResponseType type()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.