org.htuple
Class TupleMapReducePartitioner
java.lang.Object
org.apache.hadoop.mapreduce.Partitioner<Tuple,Object>
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TupleMapReducePartitioner
public TupleMapReducePartitioner()
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.