@InterfaceAudience.Public @InterfaceStability.Stable public class MultipleInputs extends Object
InputFormat
and Mapper
for each path限定符和类型 | 字段和说明 |
---|---|
static String |
DIR_FORMATS |
static String |
DIR_MAPPERS |
构造器和说明 |
---|
MultipleInputs() |
限定符和类型 | 方法和说明 |
---|---|
static void |
addInputPath(Job job,
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(Job job,
Path path,
Class<? extends InputFormat> inputFormatClass,
Class<? extends Mapper> mapperClass)
|
public static void addInputPath(Job job, Path path, Class<? extends InputFormat> inputFormatClass)
Path
with a custom InputFormat
to the list of
inputs for the map-reduce job.job
- The Job
path
- Path
to be added to the list of inputs for the jobinputFormatClass
- InputFormat
class to use for this pathpublic static void addInputPath(Job job, Path path, Class<? extends InputFormat> inputFormatClass, Class<? extends Mapper> mapperClass)
job
- The Job
path
- 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