public class MultipleInputs
extends java.lang.Object
InputFormat and Mapper for each path| Constructor and Description |
|---|
MultipleInputs() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addInputPath(Job job,
org.apache.hadoop.fs.Path path,
java.lang.Class<? extends InputFormat> inputFormatClass)
Add a
Path with a custom InputFormat to the list of
inputs for the map-reduce job. |
static void |
addInputPath(Job job,
org.apache.hadoop.fs.Path path,
java.lang.Class<? extends InputFormat> inputFormatClass,
java.lang.Class<? extends Mapper> mapperClass)
|
public static void addInputPath(Job job, org.apache.hadoop.fs.Path path, java.lang.Class<? extends InputFormat> inputFormatClass)
Path with a custom InputFormat to the list of
inputs for the map-reduce job.job - The Jobpath - Path to be added to the list of inputs for the jobinputFormatClass - InputFormat class to use for this pathpublic static void addInputPath(Job job, org.apache.hadoop.fs.Path path, java.lang.Class<? extends InputFormat> inputFormatClass, java.lang.Class<? extends Mapper> mapperClass)
job - The Jobpath - Path to be added to the list of inputs for the jobinputFormatClass - InputFormat class to use for this pathmapperClass - Mapper class to use for this pathCopyright © 2009 The Apache Software Foundation