org.htuple
Class TupleMapRedPartitioner
java.lang.Object
org.htuple.TupleMapRedPartitioner
- All Implemented Interfaces:
- org.apache.hadoop.mapred.JobConfigurable, org.apache.hadoop.mapred.Partitioner<Tuple,Object>
public class TupleMapRedPartitioner
- extends Object
- implements org.apache.hadoop.mapred.Partitioner<Tuple,Object>
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 |
TupleMapRedPartitioner
public TupleMapRedPartitioner()
configure
public void configure(org.apache.hadoop.mapred.JobConf job)
- Specified by:
configure in interface org.apache.hadoop.mapred.JobConfigurable
getPartition
public int getPartition(Tuple key,
Object value,
int numPartitions)
- Specified by:
getPartition in interface org.apache.hadoop.mapred.Partitioner<Tuple,Object>
Copyright © 2013. All Rights Reserved.