org.apache.nutch.mapReduce
Class JobConf

java.lang.Object
  extended byorg.apache.nutch.util.NutchConf
      extended byorg.apache.nutch.mapReduce.JobConf

public class JobConf
extends NutchConf

A map/reduce job configuration. This names the Mapper, combiner (if any), Partitioner, Reducer, InputFormat, and OutputFormat implementations to be used. It also indicates the set of input files, and where the output files should be written.


Constructor Summary
JobConf()
          Construct a map/reduce configuration.
JobConf(File config)
          Construct a map/reduce configuration.
JobConf(String config)
          Construct a map/reduce configuration.
 
Method Summary
 Class getCombinerClass()
           
 File getInputDir()
           
 InputFormat getInputFormat()
           
 Class getInputKeyClass()
           
 Class getInputValueClass()
           
 String getJar()
           
static File getLocalDir()
           
 Class getMapperClass()
           
 int getNumMapTasks()
           
 int getNumReduceTasks()
           
 File getOutputDir()
           
 OutputFormat getOutputFormat()
           
 Class getOutputKeyClass()
           
 Class getOutputKeyComparatorClass()
           
 Class getOutputValueClass()
           
 Class getPartitionerClass()
           
 Class getReducerClass()
           
static File getSystemDir()
           
static void main(String[] args)
          For debugging.
 Configurable newInstance(Class theClass)
           
 void setCombinerClass(Class theClass)
           
 void setInputDir(File dir)
           
 void setInputFormat(InputFormat format)
           
 void setInputKeyClass(Class theClass)
           
 void setInputValueClass(Class theClass)
           
 void setJar(String jar)
           
 void setMapperClass(Class theClass)
           
 void setNumMapTasks(int n)
           
 void setNumReduceTasks(int n)
           
 void setOutputDir(File dir)
           
 void setOutputFormat(OutputFormat format)
           
 void setOutputKeyClass(Class theClass)
           
 void setOutputKeyComparatorClass(Class theClass)
           
 void setOutputValueClass(Class theClass)
           
 void setPartitionerClass(Class theClass)
           
 void setReducerClass(Class theClass)
           
 
Methods inherited from class org.apache.nutch.util.NutchConf
addConfResource, addConfResource, get, get, get, getBoolean, getClass, getClass, getConfResourceAsInputStream, getConfResourceAsReader, getFloat, getInt, getLong, getResource, getStrings, set, setClass, setInt, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobConf

public JobConf()
Construct a map/reduce configuration.


JobConf

public JobConf(String config)
Construct a map/reduce configuration.

Parameters:
config - a NutchConf-format XML job description file

JobConf

public JobConf(File config)
Construct a map/reduce configuration.

Parameters:
config - a NutchConf-format XML job description file
Method Detail

getJar

public String getJar()

setJar

public void setJar(String jar)

getSystemDir

public static File getSystemDir()

getLocalDir

public static File getLocalDir()

getInputDir

public File getInputDir()

setInputDir

public void setInputDir(File dir)

getOutputDir

public File getOutputDir()

setOutputDir

public void setOutputDir(File dir)

getInputFormat

public InputFormat getInputFormat()

setInputFormat

public void setInputFormat(InputFormat format)

getOutputFormat

public OutputFormat getOutputFormat()

setOutputFormat

public void setOutputFormat(OutputFormat format)

getInputKeyClass

public Class getInputKeyClass()

setInputKeyClass

public void setInputKeyClass(Class theClass)

getInputValueClass

public Class getInputValueClass()

setInputValueClass

public void setInputValueClass(Class theClass)

getOutputKeyClass

public Class getOutputKeyClass()

setOutputKeyClass

public void setOutputKeyClass(Class theClass)

getOutputKeyComparatorClass

public Class getOutputKeyComparatorClass()

setOutputKeyComparatorClass

public void setOutputKeyComparatorClass(Class theClass)

getOutputValueClass

public Class getOutputValueClass()

setOutputValueClass

public void setOutputValueClass(Class theClass)

getMapperClass

public Class getMapperClass()

setMapperClass

public void setMapperClass(Class theClass)

getPartitionerClass

public Class getPartitionerClass()

setPartitionerClass

public void setPartitionerClass(Class theClass)

getReducerClass

public Class getReducerClass()

setReducerClass

public void setReducerClass(Class theClass)

getCombinerClass

public Class getCombinerClass()

setCombinerClass

public void setCombinerClass(Class theClass)

getNumMapTasks

public int getNumMapTasks()

setNumMapTasks

public void setNumMapTasks(int n)

getNumReduceTasks

public int getNumReduceTasks()

setNumReduceTasks

public void setNumReduceTasks(int n)

newInstance

public Configurable newInstance(Class theClass)

main

public static void main(String[] args)
Description copied from class: NutchConf
For debugging. List non-default properties to the terminal and exit.



Copyright © 2006 The Apache Software Foundation