edu.umd.cloud9.example.pagerank
Class RangePartitioner<K,V>

java.lang.Object
  extended by edu.umd.cloud9.example.pagerank.RangePartitioner<K,V>
All Implemented Interfaces:
JobConfigurable, Partitioner<IntWritable,Writable>

public class RangePartitioner<K,V>
extends Object
implements Partitioner<IntWritable,Writable>

Ranger partitioner. In the context of graph algorithms, ensures that consecutive node ids are blocked together.

Author:
jimmy

Constructor Summary
RangePartitioner()
           
 
Method Summary
 void configure(JobConf job)
           
 int getPartition(IntWritable key, Writable value, int numReduceTasks)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RangePartitioner

public RangePartitioner()
Method Detail

getPartition

public int getPartition(IntWritable key,
                        Writable value,
                        int numReduceTasks)
Specified by:
getPartition in interface Partitioner<IntWritable,Writable>

configure

public void configure(JobConf job)
Specified by:
configure in interface JobConfigurable