org.htuple
Class TupleMapReducePartitioner

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Partitioner<Tuple,Object>
      extended by org.htuple.TupleMapReducePartitioner
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable

public class TupleMapReducePartitioner
extends org.apache.hadoop.mapreduce.Partitioner<Tuple,Object>
implements org.apache.hadoop.conf.Configurable

A partitioner for Tuple's to support secondary sorting.

See ShuffleUtils for examples of how secondary sort can be configured.


Constructor Summary
TupleMapReducePartitioner()
           
 
Method Summary
 org.apache.hadoop.conf.Configuration getConf()
           
 int getPartition(Tuple key, Object value, int numPartitions)
           
 void setConf(org.apache.hadoop.conf.Configuration conf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TupleMapReducePartitioner

public TupleMapReducePartitioner()
Method Detail

setConf

public void setConf(org.apache.hadoop.conf.Configuration conf)
Specified by:
setConf in interface org.apache.hadoop.conf.Configurable

getConf

public org.apache.hadoop.conf.Configuration getConf()
Specified by:
getConf in interface org.apache.hadoop.conf.Configurable

getPartition

public int getPartition(Tuple key,
                        Object value,
                        int numPartitions)
Specified by:
getPartition in class org.apache.hadoop.mapreduce.Partitioner<Tuple,Object>


Copyright © 2013. All Rights Reserved.