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 |
---|
DetermineHashedPartitionsJob.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 DetermineHashedPartitionsJob.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.Configurable
public void setConf(org.apache.hadoop.conf.Configuration config)
setConf
in interface org.apache.hadoop.conf.Configurable
Copyright © 2011–2015. All rights reserved.