public static class CompressingMetaIndexBuilder.KeyedPartitioner extends Object implements org.apache.hadoop.mapred.Partitioner<org.terrier.structures.indexing.CompressingMetaIndexBuilder.KeyValueTuple,org.apache.hadoop.io.IntWritable>
Modifier and Type | Field and Description |
---|---|
protected gnu.trove.TObjectIntHashMap<String> |
key2reverseOffset |
protected int |
keyCount |
Constructor and Description |
---|
CompressingMetaIndexBuilder.KeyedPartitioner() |
Modifier and Type | Method and Description |
---|---|
void |
configure(org.apache.hadoop.mapred.JobConf jc) |
int |
getPartition(org.terrier.structures.indexing.CompressingMetaIndexBuilder.KeyValueTuple kv,
org.apache.hadoop.io.IntWritable docid,
int numReducers) |
protected int keyCount
protected gnu.trove.TObjectIntHashMap<String> key2reverseOffset
public CompressingMetaIndexBuilder.KeyedPartitioner()
public int getPartition(org.terrier.structures.indexing.CompressingMetaIndexBuilder.KeyValueTuple kv, org.apache.hadoop.io.IntWritable docid, int numReducers)
getPartition
in interface org.apache.hadoop.mapred.Partitioner<org.terrier.structures.indexing.CompressingMetaIndexBuilder.KeyValueTuple,org.apache.hadoop.io.IntWritable>
public void configure(org.apache.hadoop.mapred.JobConf jc)
configure
in interface org.apache.hadoop.mapred.JobConfigurable
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow