|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.structures.indexing.singlepass.hadoop.Inv2DirectMultiReduce.Inv2DirectMultiReduceJob
public static class Inv2DirectMultiReduce.Inv2DirectMultiReduceJob
This class performs contains setup for the MR job. It allows reuse of the general MR job by other similar situations.
| Constructor Summary | |
|---|---|
Inv2DirectMultiReduce.Inv2DirectMultiReduceJob(Index _index,
HadoopPlugin.JobFactory _jf)
constructor |
|
| Method Summary | |
|---|---|
Class<? extends DirectInvertedOutputStream> |
getBitOutputClass()
get bitOutputClass |
HadoopPlugin.JobFactory |
getJf()
What job factory to use? |
Class<?> |
getMapOutputClass()
Type of the posting class |
int |
getNumberOfReduceTasks()
Number of reduce task to use |
int |
getNumberOfTargetEntries()
How many entries should there be in the final structure |
String |
getSourceLookupStructureName()
Name of the lookup structure for the source structure. |
String |
getSourceStructureName()
Name of the source posting structure. |
String |
getTargetLookupStructureName()
Name of the lookup structure for the target. |
String |
getTargetStructureName()
Name of the target structure. |
void |
runJob()
Runs the MapReduce job described by the current state of this class |
void |
setBitOutputClass(Class<? extends DirectInvertedOutputStream> _bitOutputClass)
set bitOutputClass |
void |
setJf(HadoopPlugin.JobFactory _jf)
set jf |
void |
setMapOutputClass(Class<?> _mapOutputClass)
set mapOutputClass |
void |
setNumberOfReduceTasks(int _numberOfReduceTasks)
set number of reduce task |
void |
setNumberOfTargetEntries(int _numberOfTargetEntries)
set number of target entries |
void |
setSourceLookupStructureName(String _sourceLookupStructureName)
set source lookup structure name |
void |
setSourceStructureName(String _sourceStructureName)
set source structure name |
void |
setTargetLookupStructureName(String _targetLookupStructureName)
set target lookup structure name |
void |
setTargetStructureName(String _targetStructureName)
set target structure name |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Inv2DirectMultiReduce.Inv2DirectMultiReduceJob(Index _index,
HadoopPlugin.JobFactory _jf)
_index - _jf - | Method Detail |
|---|
public void runJob()
throws Exception
Exceptionpublic Class<? extends DirectInvertedOutputStream> getBitOutputClass()
public void setBitOutputClass(Class<? extends DirectInvertedOutputStream> _bitOutputClass)
_bitOutputClass - public int getNumberOfTargetEntries()
public void setNumberOfTargetEntries(int _numberOfTargetEntries)
_numberOfTargetEntries - public HadoopPlugin.JobFactory getJf()
public void setJf(HadoopPlugin.JobFactory _jf)
_jf - public Class<?> getMapOutputClass()
public void setMapOutputClass(Class<?> _mapOutputClass)
_mapOutputClass - public int getNumberOfReduceTasks()
public void setNumberOfReduceTasks(int _numberOfReduceTasks)
_numberOfReduceTasks - public String getSourceLookupStructureName()
public void setSourceLookupStructureName(String _sourceLookupStructureName)
_sourceLookupStructureName - public String getSourceStructureName()
public void setSourceStructureName(String _sourceStructureName)
_sourceStructureName - public String getTargetLookupStructureName()
public void setTargetLookupStructureName(String _targetLookupStructureName)
_targetLookupStructureName - public String getTargetStructureName()
public void setTargetStructureName(String _targetStructureName)
_targetStructureName -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||