code: public static CompressionType getOutputCompressionType(JobConf conf) {
      String val = conf.get("mapred.output.compression.type", 
                            CompressionType.RECORD.toString());
      return CompressionType.valueOf(val);
    }
docs: Get the {@link CompressionType} for the output {@link SequenceFile}.
  @param conf the {@link JobConf}
  @return the {@link CompressionType} for the output {@link SequenceFile},
  defaulting to {@link CompressionType#RECORD}