org.apache.hadoop.hbase.client
Class MultiPut

java.lang.Object
  extended by org.apache.hadoop.hbase.client.MultiPut
All Implemented Interfaces:
org.apache.hadoop.io.Writable

public class MultiPut
extends Object
implements org.apache.hadoop.io.Writable

Data type class for putting multiple regions worth of puts in one RPC.


Field Summary
 HServerAddress address
           
 Map<byte[],List<Put>> puts
           
 
Constructor Summary
MultiPut()
          Writable constructor only.
MultiPut(HServerAddress a)
          MultiPut for putting multiple regions worth of puts in one RPC.
 
Method Summary
 void add(byte[] regionName, Put aPut)
           
 Collection<Put> allPuts()
           
 void readFields(DataInput in)
           
 int size()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

address

public HServerAddress address

puts

public Map<byte[],List<Put>> puts
Constructor Detail

MultiPut

public MultiPut()
Writable constructor only.


MultiPut

public MultiPut(HServerAddress a)
MultiPut for putting multiple regions worth of puts in one RPC.

Parameters:
a - address
Method Detail

size

public int size()

add

public void add(byte[] regionName,
                Put aPut)

allPuts

public Collection<Put> allPuts()

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException


Copyright © 2010 Apache Software Foundation. All Rights Reserved.