code: public static void setInputPathFilter(JobConf conf,
                                          Class<? extends PathFilter> filter) {
      conf.setClass("mapred.input.pathFilter.class", filter, PathFilter.class);
    }
docs: Set a PathFilter to be applied to the input paths for the map-reduce job.
  
  @param filter the PathFilter class use for filtering the input paths.