/// <summary> /// Set the /// <see cref="Org.Apache.Hadoop.IO.SequenceFile.CompressionType"/> /// for the output /// <see cref="Org.Apache.Hadoop.IO.SequenceFile"/> /// . /// </summary> /// <param name="job"> /// the /// <see cref="Org.Apache.Hadoop.Mapreduce.Job"/> /// to modify /// </param> /// <param name="style"> /// the /// <see cref="Org.Apache.Hadoop.IO.SequenceFile.CompressionType"/> /// for the output /// <see cref="Org.Apache.Hadoop.IO.SequenceFile"/> /// /// </param> public static void SetOutputCompressionType(Job job, SequenceFile.CompressionType style) { SetCompressOutput(job, true); job.GetConfiguration().Set(FileOutputFormat.CompressType, style.ToString()); }
/// <summary> /// Set the /// <see cref="Org.Apache.Hadoop.IO.SequenceFile.CompressionType"/> /// for the output /// <see cref="Org.Apache.Hadoop.IO.SequenceFile"/> /// . /// </summary> /// <param name="conf"> /// the /// <see cref="JobConf"/> /// to modify /// </param> /// <param name="style"> /// the /// <see cref="Org.Apache.Hadoop.IO.SequenceFile.CompressionType"/> /// for the output /// <see cref="Org.Apache.Hadoop.IO.SequenceFile"/> /// /// </param> public static void SetOutputCompressionType(JobConf conf, SequenceFile.CompressionType style) { SetCompressOutput(conf, true); conf.Set(FileOutputFormat.CompressType, style.ToString()); }