org.apache.hadoop.hbase.client
Class MultiResponse
java.lang.Object
org.apache.hadoop.hbase.client.MultiResponse
@InterfaceAudience.Private
public class MultiResponse
- extends Object
A container for Result objects, grouped by regionName.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiResponse
public MultiResponse()
size
public int size()
- Returns:
- Number of pairs in this container
add
public void add(byte[] regionName,
int originalIndex,
Object resOrEx)
- Add the pair to the container, grouped by the regionName
- Parameters:
regionName
- First item in the pair is the original index of the Action
(request). Second item is the Result. Result will be empty for
successful Put and Delete actions.
addException
public void addException(byte[] regionName,
Throwable ie)
getException
public Throwable getException(byte[] regionName)
- Returns:
- the exception for the region, if any. Null otherwise.
getExceptions
public Map<byte[],Throwable> getExceptions()
addStatistic
public void addStatistic(byte[] regionName,
org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats stat)
getResults
public Map<byte[],org.apache.hadoop.hbase.client.MultiResponse.RegionResult> getResults()
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.