public static class SplitEmittedTerm.SETPartitionerLowercaseAlphaTerm extends Object implements org.apache.hadoop.mapred.Partitioner<SplitEmittedTerm,MapEmittedPostingList>
Constructor and Description |
---|
SplitEmittedTerm.SETPartitionerLowercaseAlphaTerm() |
Modifier and Type | Method and Description |
---|---|
int |
calculatePartition(char _initialChar,
int numPartitions)
Calculates the partitions for a given split number.
|
void |
configure(org.apache.hadoop.mapred.JobConf jc) |
int |
getPartition(SplitEmittedTerm term,
MapEmittedPostingList posting,
int numPartitions)
Retuns the partition for the specified term and posting list, given the specified
number of partitions.
|
public SplitEmittedTerm.SETPartitionerLowercaseAlphaTerm()
public int getPartition(SplitEmittedTerm term, MapEmittedPostingList posting, int numPartitions)
getPartition
in interface org.apache.hadoop.mapred.Partitioner<SplitEmittedTerm,MapEmittedPostingList>
public int calculatePartition(char _initialChar, int numPartitions)
_initialChar
- - what's the first character in the termnumPartitions
- - number of partitions (reducers) configuredpublic 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