public static class Inv2DirectMultiReduce.ByDocidPartitioner<K> extends Object implements org.apache.hadoop.mapred.Partitioner<org.apache.hadoop.io.VIntWritable,K>
Constructor and Description |
---|
Inv2DirectMultiReduce.ByDocidPartitioner() |
Modifier and Type | Method and Description |
---|---|
void |
configure(org.apache.hadoop.mapred.JobConf job) |
int |
getPartition(org.apache.hadoop.io.VIntWritable docid,
K posting,
int numberOfReducers) |
static void |
setNumberOfDocments(org.apache.hadoop.mapred.JobConf job,
int numDocs)
set number of documents
|
public Inv2DirectMultiReduce.ByDocidPartitioner()
public int getPartition(org.apache.hadoop.io.VIntWritable docid, K posting, int numberOfReducers)
getPartition
in interface org.apache.hadoop.mapred.Partitioner<org.apache.hadoop.io.VIntWritable,K>
public void configure(org.apache.hadoop.mapred.JobConf job)
configure
in interface org.apache.hadoop.mapred.JobConfigurable
public static void setNumberOfDocments(org.apache.hadoop.mapred.JobConf job, int numDocs)
job
- numDocs
- Terrier 4.0. Copyright © 2004-2014 University of Glasgow