Class MultipleInputs

java.lang.Object
org.apache.hadoop.mapred.lib.MultipleInputs

@Public @Stable public class MultipleInputs extends Object
This class supports MapReduce jobs that have multiple input paths with a different InputFormat and Mapper for each path
  • Constructor Details

    • MultipleInputs

      public MultipleInputs()
  • Method Details

    • addInputPath

      public 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.
      Parameters:
      conf - The configuration of the job
      path - Path to be added to the list of inputs for the job
      inputFormatClass - InputFormat class to use for this path
    • addInputPath

      public static void addInputPath(JobConf conf, Path path, Class<? extends InputFormat> inputFormatClass, Class<? extends Mapper> mapperClass)
      Add a Path with a custom InputFormat and Mapper to the list of inputs for the map-reduce job.
      Parameters:
      conf - The configuration of the job
      path - Path to be added to the list of inputs for the job
      inputFormatClass - InputFormat class to use for this path
      mapperClass - Mapper class to use for this path