org.terrier.utility.io
Class HadoopPlugin.JobFactory

java.lang.Object
  extended by org.terrier.utility.io.HadoopPlugin.JobFactory
Enclosing class:
HadoopPlugin

public abstract static class HadoopPlugin.JobFactory
extends java.lang.Object

a Job Factory is responsible for creating Terrier MapReduce jobs. This should be used when requesting a Terrier MapReduce job, as it adequately initialises the job, such that Terrier can run correctly.


Constructor Summary
HadoopPlugin.JobFactory()
           
 
Method Summary
abstract  void close()
          Finish with this job factory.
protected static void makeTerrierJob(org.apache.hadoop.mapred.JobConf jc)
          Add additional informatino to a MapReduce job about the Terrier configuration
abstract  org.apache.hadoop.mapred.JobConf newJob()
          Make a new job
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HadoopPlugin.JobFactory

public HadoopPlugin.JobFactory()
Method Detail

newJob

public abstract org.apache.hadoop.mapred.JobConf newJob()
                                                 throws java.lang.Exception
Make a new job

Throws:
java.lang.Exception

makeTerrierJob

protected static void makeTerrierJob(org.apache.hadoop.mapred.JobConf jc)
                              throws java.io.IOException
Add additional informatino to a MapReduce job about the Terrier configuration

Throws:
java.io.IOException

close

public abstract void close()
Finish with this job factory. If the JobFactory was created using HOD, then the HOD job will also be ended



Terrier 3.5. Copyright © 2004-2011 University of Glasgow