public static class DetermineHashedPartitionsJob.DetermineHashedPartitionsPartitioner
extends org.apache.hadoop.mapreduce.Partitioner<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BytesWritable>
implements org.apache.hadoop.conf.Configurable
| Constructor and Description |
|---|
DetermineHashedPartitionsPartitioner() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.conf.Configuration |
getConf() |
int |
getPartition(org.apache.hadoop.io.LongWritable interval,
org.apache.hadoop.io.BytesWritable text,
int numPartitions) |
void |
setConf(org.apache.hadoop.conf.Configuration config) |
public DetermineHashedPartitionsPartitioner()
public int getPartition(org.apache.hadoop.io.LongWritable interval,
org.apache.hadoop.io.BytesWritable text,
int numPartitions)
getPartition in class org.apache.hadoop.mapreduce.Partitioner<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BytesWritable>public org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.Configurablepublic void setConf(org.apache.hadoop.conf.Configuration config)
setConf in interface org.apache.hadoop.conf.ConfigurableCopyright © 2011–2017. All rights reserved.