/** * Create an {@link org.apache.tez.mapreduce.input.MRInput.MRInputConfigBuilder} * for {@link org.apache.hadoop.mapreduce.lib.input.FileInputFormat} * or {@link org.apache.hadoop.mapred.FileInputFormat} format based InputFormats. * <p/> * The preferred usage model is to provide all of the parameters, and use methods to configure * the Input. * <p/> * For legacy applications, which may already have a fully configured {@link Configuration} * instance, the inputFormat and inputPath can be specified as null * * @param conf Configuration for the {@link MRInput}. This configuration instance will be * modified in place * @param inputFormat InputFormat derived class. This can be null. If the InputFormat specified * is * null, the provided configuration should be complete. * @param inputPaths Comma separated input paths * @return {@link org.apache.tez.mapreduce.input.MRInput.MRInputConfigBuilder} */ public static MRInputConfigBuilder createConfigBuilder(Configuration conf, @Nullable Class<?> inputFormat, @Nullable String inputPaths) { MRInputConfigBuilder configurer = new MRInputConfigBuilder(conf, inputFormat); if (inputPaths != null) { return configurer.setInputPaths(inputPaths); } return configurer; }
/** * Create an {@link org.apache.tez.mapreduce.input.MRInput.MRInputConfigBuilder} </p> * The preferred usage model is to provide all of the parameters, and use methods to configure * the Input. * <p/> * For legacy applications, which may already have a fully configured {@link Configuration} * instance, the inputFormat can be specified as null * * @param conf Configuration for the {@link MRInput}. This configuration instance will be * modified in place * @param inputFormat InputFormat derived class. This can be null. If the InputFormat specified * is * null, the provided configuration should be complete. * @return {@link org.apache.tez.mapreduce.input.MRInput.MRInputConfigBuilder} */ public static MRInputConfigBuilder createConfigBuilder(Configuration conf, @Nullable Class<?> inputFormat) { return new MRInputConfigBuilder(conf, inputFormat); }