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 Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow