|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.structures.indexing.singlepass.hadoop.SplitEmittedTerm.SETPartitioner
public static class SplitEmittedTerm.SETPartitioner
Partitions SplitEmittedTerms by split that they came from.
| Constructor Summary | |
|---|---|
SplitEmittedTerm.SETPartitioner()
|
|
| Method Summary | |
|---|---|
int |
calculatePartition(int splitno,
int numPartitions)
Calculates the partitions for a given split number. |
void |
configure(org.apache.hadoop.mapred.JobConf conf)
Configure the partitioner functionality, i.e. |
int |
getPartition(SplitEmittedTerm term,
MapEmittedPostingList posting,
int numPartitions)
Retuns the partition for the specified term and posting list, given the specified number of partitions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SplitEmittedTerm.SETPartitioner()
| Method Detail |
|---|
public void configure(org.apache.hadoop.mapred.JobConf conf)
configure in interface org.apache.hadoop.mapred.JobConfigurable
public int getPartition(SplitEmittedTerm term,
MapEmittedPostingList posting,
int numPartitions)
getPartition in interface org.apache.hadoop.mapred.Partitioner<SplitEmittedTerm,MapEmittedPostingList>
public int calculatePartition(int splitno,
int numPartitions)
splitno - - which split index, starting at 0numPartitions - - number of partitions (reducers) configured
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||