org.apache.hadoop.hbase.mapreduce
Class PutCombiner<K>

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Reducer<K,Put,K,Put>
      extended by org.apache.hadoop.hbase.mapreduce.PutCombiner<K>

@InterfaceAudience.Public
@InterfaceStability.Evolving
public class PutCombiner<K>
extends org.apache.hadoop.mapreduce.Reducer<K,Put,K,Put>

Combine Puts. Merges Put instances grouped by K into a single instance.

See Also:
TableMapReduceUtil

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer
org.apache.hadoop.mapreduce.Reducer.Context
 
Constructor Summary
PutCombiner()
           
 
Method Summary
protected  void reduce(K row, Iterable<Put> vals, org.apache.hadoop.mapreduce.Reducer.Context context)
           
 
Methods inherited from class org.apache.hadoop.mapreduce.Reducer
cleanup, run, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PutCombiner

public PutCombiner()
Method Detail

reduce

protected void reduce(K row,
                      Iterable<Put> vals,
                      org.apache.hadoop.mapreduce.Reducer.Context context)
               throws IOException,
                      InterruptedException
Overrides:
reduce in class org.apache.hadoop.mapreduce.Reducer<K,Put,K,Put>
Throws:
IOException
InterruptedException


Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.