org.apache.hadoop.hbase.client
Class MultiPut
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
address
public HServerAddress address
puts
public Map<byte[],List<Put>> puts
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
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.