code: public static void setFilterClass(Configuration conf, Class filterClass) {
      conf.set(FILTER_CLASS, filterClass.getName());
    }
docs: set the filter class
  
  @param conf application configuration
  @param filterClass filter class