public class TokenPairPartitioner extends org.apache.hadoop.mapreduce.Partitioner<org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable> implements org.apache.hadoop.conf.Configurable
| Constructor and Description |
|---|
TokenPairPartitioner() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.conf.Configuration |
getConf() |
int |
getPartition(org.apache.hadoop.io.BytesWritable key,
org.apache.hadoop.io.BytesWritable value,
int numPartitions) |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
public TokenPairPartitioner()
public int getPartition(org.apache.hadoop.io.BytesWritable key, org.apache.hadoop.io.BytesWritable value, int numPartitions)
getPartition in class org.apache.hadoop.mapreduce.Partitioner<org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable>public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.Configurablepublic org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.Configurable