public class MultiResponse extends Object implements org.apache.hadoop.io.Writable
Constructor and Description |
---|
MultiResponse() |
Modifier and Type | Method and Description |
---|---|
void |
add(byte[] regionName,
int originalIndex,
Object resOrEx) |
void |
add(byte[] regionName,
Pair<Integer,Object> r)
Add the pair to the container, grouped by the regionName
|
Map<byte[],List<Pair<Integer,Object>>> |
getResults() |
void |
readFields(DataInput in) |
int |
size() |
void |
write(DataOutput out) |
public int size()
public void add(byte[] regionName, Pair<Integer,Object> r)
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.public void add(byte[] regionName, int originalIndex, Object resOrEx)
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.