public static class TeraSort.SimplePartitioner
extends org.apache.hadoop.mapreduce.Partitioner<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
implements org.apache.hadoop.conf.Configurable
Constructor and Description |
---|
TeraSort.SimplePartitioner() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.conf.Configuration |
getConf() |
int |
getPartition(org.apache.hadoop.io.Text key,
org.apache.hadoop.io.Text value,
int numPartitions) |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
public org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
public int getPartition(org.apache.hadoop.io.Text key, org.apache.hadoop.io.Text value, int numPartitions)
getPartition
in class org.apache.hadoop.mapreduce.Partitioner<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
Copyright © 2015 Apache Software Foundation. All Rights Reserved.