@InterfaceAudience.Public @InterfaceStability.Stable public class MultipleInputs extends Object
InputFormat and Mapper for each path| Constructor and Description |
|---|
MultipleInputs() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addInputPath(JobConf conf,
Path path,
Class<? extends InputFormat> inputFormatClass)
Add a
Path with a custom InputFormat to the list of
inputs for the map-reduce job. |
static void |
addInputPath(JobConf conf,
Path path,
Class<? extends InputFormat> inputFormatClass,
Class<? extends Mapper> mapperClass)
|
public MultipleInputs()
public static void addInputPath(JobConf conf, Path path, Class<? extends InputFormat> inputFormatClass)
Path with a custom InputFormat to the list of
inputs for the map-reduce job.conf - The configuration of the jobpath - Path to be added to the list of inputs for the jobinputFormatClass - InputFormat class to use for this pathpublic static void addInputPath(JobConf conf, Path path, Class<? extends InputFormat> inputFormatClass, Class<? extends Mapper> mapperClass)
conf - The configuration of 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 © 2018 Apache Software Foundation. All rights reserved.