org.htuple
Class TuplePartitioner

java.lang.Object
  extended by org.htuple.TuplePartitioner

public class TuplePartitioner
extends Object

A partitioner for Tuple's to support secondary sorting.

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


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

Constructor Detail

TuplePartitioner

public TuplePartitioner(org.apache.hadoop.conf.Configuration conf)
Method Detail

getConf

public org.apache.hadoop.conf.Configuration getConf()

getPartition

public int getPartition(Tuple key,
                        int numPartitions)


Copyright © 2013. All Rights Reserved.