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