code: public static void setOutputCompressionType(JobConf conf, 
  		                                          CompressionType style) {
      setCompressOutput(conf, true);
      conf.set("mapred.output.compression.type", style.toString());
    }
docs: Set the {@link CompressionType} for the output {@link SequenceFile}.
  @param conf the {@link JobConf} to modify
  @param style the {@link CompressionType} for the output
  {@link SequenceFile}