code: public static void 
    setOutputCompressorClass(JobConf conf, 
                             Class<? extends CompressionCodec> codecClass) {
      setCompressOutput(conf, true);
      conf.setClass("mapred.output.compression.codec", codecClass, 
                    CompressionCodec.class);
    }
docs: Set the {@link CompressionCodec} to be used to compress job outputs.
  @param conf the {@link JobConf} to modify
  @param codecClass the {@link CompressionCodec} to be used to
  compress the job outputs