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