org.apache.hadoop.hbase.client
Class MultiResponse
java.lang.Object
org.apache.hadoop.hbase.client.MultiResponse
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
public class MultiResponse
- extends java.lang.Object
- implements org.apache.hadoop.io.Writable
A container for Result objects, grouped by regionName.
|
Method Summary |
void |
add(byte[] regionName,
int originalIndex,
java.lang.Object resOrEx)
|
void |
add(byte[] regionName,
Pair<java.lang.Integer,java.lang.Object> r)
Add the pair to the container, grouped by the regionName |
java.util.Map<byte[],java.util.List<Pair<java.lang.Integer,java.lang.Object>>> |
getResults()
|
void |
readFields(java.io.DataInput in)
|
int |
size()
|
void |
write(java.io.DataOutput out)
|
| 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,
Pair<java.lang.Integer,java.lang.Object> r)
- Add the pair to the container, grouped by the regionName
- Parameters:
regionName - r - 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.
add
public void add(byte[] regionName,
int originalIndex,
java.lang.Object resOrEx)
getResults
public java.util.Map<byte[],java.util.List<Pair<java.lang.Integer,java.lang.Object>>> getResults()
write
public void write(java.io.DataOutput out)
throws java.io.IOException
- Specified by:
write in interface org.apache.hadoop.io.Writable
- Throws:
java.io.IOException
readFields
public void readFields(java.io.DataInput in)
throws java.io.IOException
- Specified by:
readFields in interface org.apache.hadoop.io.Writable
- Throws:
java.io.IOException
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.