@InterfaceAudience.Private public class MultiResponse extends Object
Modifier and Type | Field and Description |
---|---|
private Map<byte[],Throwable> |
exceptions
The server can send us a failure for the region itself, instead of individual failure.
|
private Map<byte[],Map<Integer,Object>> |
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) |
Throwable |
getException(byte[] regionName) |
Map<byte[],Throwable> |
getExceptions() |
Map<byte[],Map<Integer,Object>> |
getResults() |
int |
size() |
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)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.