@InterfaceAudience.Private public class MultiResponse extends AbstractResponse
| Modifier and Type | Class and Description | 
|---|---|
| (package private) static class  | MultiResponse.RegionResult | 
AbstractResponse.ResponseType| Modifier and Type | Field and Description | 
|---|---|
| private Map<byte[],Throwable> | exceptionsThe server can send us a failure for the region itself, instead of individual failure. | 
| private Map<byte[],MultiResponse.RegionResult> | results | 
| Constructor and Description | 
|---|
| MultiResponse() | 
| Modifier and Type | Method and Description | 
|---|---|
| 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() | 
| private MultiResponse.RegionResult | getResult(byte[] region) | 
| Map<byte[],MultiResponse.RegionResult> | getResults() | 
| int | size() | 
| AbstractResponse.ResponseType | type() | 
private Map<byte[],MultiResponse.RegionResult> results
private Map<byte[],Throwable> exceptions
public MultiResponse()
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 Map<byte[],Throwable> getExceptions()
public void addStatistic(byte[] regionName, org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.RegionLoadStats stat)
private MultiResponse.RegionResult getResult(byte[] region)
public Map<byte[],MultiResponse.RegionResult> getResults()
public AbstractResponse.ResponseType type()
type in class AbstractResponseCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.