org.htuple
Class TupleMapRedPartitioner

java.lang.Object
  extended by 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.


Constructor Summary
TupleMapRedPartitioner()
           
 
Method Summary
 void configure(org.apache.hadoop.mapred.JobConf job)
           
 int getPartition(Tuple key, Object value, int numPartitions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TupleMapRedPartitioner

public TupleMapRedPartitioner()
Method Detail

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.