Package org.apache.hadoop.mapred.lib
Class MultipleInputs
java.lang.Object
org.apache.hadoop.mapred.lib.MultipleInputs
This class supports MapReduce jobs that have multiple input paths with
a different
InputFormat and Mapper for each path-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddInputPath(JobConf conf, Path path, Class<? extends InputFormat> inputFormatClass) Add aPathwith a customInputFormatto the list of inputs for the map-reduce job.static voidaddInputPath(JobConf conf, Path path, Class<? extends InputFormat> inputFormatClass, Class<? extends Mapper> mapperClass)
-
Constructor Details
-
MultipleInputs
public MultipleInputs()
-
-
Method Details
-
addInputPath
public static void addInputPath(JobConf conf, Path path, Class<? extends InputFormat> inputFormatClass) Add aPathwith a customInputFormatto the list of inputs for the map-reduce job.- Parameters:
conf- The configuration of the jobpath-Pathto be added to the list of inputs for the jobinputFormatClass-InputFormatclass to use for this path
-
addInputPath
public static void addInputPath(JobConf conf, Path path, Class<? extends InputFormat> inputFormatClass, Class<? extends Mapper> mapperClass) - Parameters:
conf- The configuration of the jobpath-Pathto be added to the list of inputs for the jobinputFormatClass-InputFormatclass to use for this pathmapperClass-Mapperclass to use for this path
-