Package org.apache.hadoop.hbase.client
Class MultiResponse
java.lang.Object
org.apache.hadoop.hbase.client.AbstractResponse
org.apache.hadoop.hbase.client.MultiResponse
A container for Result objects, grouped by regionName.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.client.AbstractResponse
AbstractResponse.ResponseType
-
Field Summary
Modifier and TypeFieldDescriptionThe server can send us a failure for the region itself, instead of individual failure.private Map<byte[],
MultiResponse.RegionResult> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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) getException
(byte[] regionName) Returns the exception for the region, if any.private MultiResponse.RegionResult
getResult
(byte[] region) Map<byte[],
MultiResponse.RegionResult> int
size()
Returns Number of pairs in this containertype()
-
Field Details
-
results
-
exceptions
The server can send us a failure for the region itself, instead of individual failure. It's a part of the protobuf definition.
-
-
Constructor Details
-
MultiResponse
public MultiResponse()
-
-
Method Details
-
size
Returns Number of pairs in this container -
add
Add the pair to the container, grouped by the regionName. -
addException
-
getException
Returns the exception for the region, if any. Null otherwise. -
getExceptions
-
addStatistic
public void addStatistic(byte[] regionName, org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.RegionLoadStats stat) -
getResult
-
getResults
-
type
- Specified by:
type
in classAbstractResponse
-