org.apache.hadoop.mapred.lib
Class MultipleInputs
java.lang.Object
   org.apache.hadoop.mapred.lib.MultipleInputs
org.apache.hadoop.mapred.lib.MultipleInputs
- public class MultipleInputs 
- extends Object
This class supports MapReduce jobs that have multiple input paths with
 a different InputFormat and Mapper for each path
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
MultipleInputs
public MultipleInputs()
addInputPath
public static void addInputPath(JobConf conf,
                                Path path,
                                Class<? extends InputFormat> inputFormatClass)
- Add a Pathwith a customInputFormatto the list of
 inputs for the map-reduce job.
 
- 
- Parameters:
- conf- The configuration of the job
- path-- Pathto be added to the list of inputs for the job
- inputFormatClass-- InputFormatclass to use for this path
 
addInputPath
public static void addInputPath(JobConf conf,
                                Path path,
                                Class<? extends InputFormat> inputFormatClass,
                                Class<? extends Mapper> mapperClass)
- Add a Pathwith a customInputFormatandMapperto the list of inputs for the map-reduce job.
 
- 
- Parameters:
- conf- The configuration of the job
- path-- Pathto be added to the list of inputs for the job
- inputFormatClass-- InputFormatclass to use for this path
- mapperClass-- Mapperclass to use for this path
 
Copyright © 2009 The Apache Software Foundation