Example usage for org.apache.hadoop.mapreduce Partitioner subclass-usage

List of usage examples for org.apache.hadoop.mapreduce Partitioner subclass-usage

Introduction

In this page you can find the example usage for org.apache.hadoop.mapreduce Partitioner subclass-usage.

Usage

From source file RangePartitioner.java

/**
 * Ranger partitioner. In the context of graph algorithms, ensures that consecutive node ids are
 * blocked together.
 *
 * @author Jimmy Lin
 * @author Michael Schatz

From source file AllLab_Skeleton.Lab2.Lab2Partitioner.java

/**
 *
 * @author pooja
 */
public class Lab2Partitioner extends Partitioner<CompositeKeyWritable, NullWritable> {

From source file Analysis.A6_User_Differentiation_By_Age.Partition_Users_By_Age_Partitioner.java

/**
 *
 * @author Chintan
 */
public class Partition_Users_By_Age_Partitioner extends Partitioner<IntWritable, Text> {

From source file assignment1.WordCount.LinkedSort.LinkedSort.java

class SortPartitioner extends Partitioner<WordAndLength, IntWritable> {
    public int getPartition(WordAndLength key, IntWritable value, int numReducers) {
        int A = Character.getNumericValue('a');
        int Z = Character.getNumericValue('z');
        int R = Z - A + 1;
        int C = R / numReducers;

From source file assignment1.WordCount.WordSort.java

class SortPartitioner extends Partitioner<Text, IntWritable> {
    public SortPartitioner() {
    }

    public int getPartition(Text key, IntWritable value, int numReducers) {
        int A = Character.getNumericValue('a');

From source file Assignment5_P3_PartitionPattern.Partition_IPAddress_By_Month_Partitioner.java

/**
 *
 * @author Chintan
 */
public class Partition_IPAddress_By_Month_Partitioner extends Partitioner<IntWritable, Text> {
    private int minMonth = 0;

From source file Average.AvgPartitioner.java

/**
 *
 * @author shruti
 */
public class AvgPartitioner extends Partitioner<YearPrice, DoubleWritable> {

From source file AverageProj.AvgPartitioner.java

/**
 *
 * @author shruti
 */
public class AvgPartitioner extends Partitioner<YearPrice, DoubleWritable> {

From source file basic.RangePartitioner.java

/**
 * Ranger partitioner. In the context of graph algorithms, ensures that consecutive node ids are
 * blocked together.
 *
 * @author Jimmy Lin
 * @author Michael Schatz

From source file be.ugent.intec.halvade.hadoop.partitioners.ChrRgPartitioner.java

/**
 *
 * @author ddecap
 */
public class ChrRgPartitioner extends Partitioner<ChromosomeRegion, SAMRecordWritable> {