org.apache.hadoop.hbase.client
Class MultiResponse

java.lang.Object
  extended by org.apache.hadoop.hbase.client.MultiResponse

@InterfaceAudience.Public
@InterfaceStability.Evolving
public class MultiResponse
extends Object

A container for Result objects, grouped by regionName.


Constructor Summary
MultiResponse()
           
 
Method Summary
 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()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiResponse

public MultiResponse()
Method Detail

size

public int size()
Returns:
Number of pairs in this container

add

public void add(byte[] regionName,
                Pair<Integer,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,
                Object resOrEx)

getResults

public Map<byte[],List<Pair<Integer,Object>>> getResults()


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.