Class CLIMergingAnySAMOutputFormat<K>
java.lang.Object
org.apache.hadoop.mapreduce.OutputFormat<K,V>
org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<K,org.seqdoop.hadoop_bam.SAMRecordWritable>
fr.ens.biologie.genomique.eoulsan.modules.mapping.hadoop.hadoopbamcli.CLIMergingAnySAMOutputFormat<K>
public class CLIMergingAnySAMOutputFormat<K>
extends org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<K,org.seqdoop.hadoop_bam.SAMRecordWritable>
Like a KeyIgnoringAnySAMOutputFormat, but sets the SAMFileHeader to
Utils.getSAMHeaderMerger().getMergedHeader() and allows the output directory (the "work
directory") to exist.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat
org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter -
Field Summary
Fields inherited from class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat
COMPRESS, COMPRESS_CODEC, COMPRESS_TYPE, OUTDIR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckOutputSpecs(org.apache.hadoop.mapreduce.JobContext job) org.apache.hadoop.fs.PathgetDefaultWorkFile(org.apache.hadoop.mapreduce.TaskAttemptContext ctx, String ext) org.apache.hadoop.mapreduce.RecordWriter<K,org.seqdoop.hadoop_bam.SAMRecordWritable> getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) Methods inherited from class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat
getCompressOutput, getOutputCommitter, getOutputCompressorClass, getOutputPath, getPathForWorkFile, getUniqueFile, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputPath
-
Constructor Details
-
CLIMergingAnySAMOutputFormat
public CLIMergingAnySAMOutputFormat()
-
-
Method Details
-
getRecordWriter
public org.apache.hadoop.mapreduce.RecordWriter<K,org.seqdoop.hadoop_bam.SAMRecordWritable> getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException - Specified by:
getRecordWriterin classorg.apache.hadoop.mapreduce.lib.output.FileOutputFormat<K,org.seqdoop.hadoop_bam.SAMRecordWritable> - Throws:
IOException
-
getDefaultWorkFile
public org.apache.hadoop.fs.Path getDefaultWorkFile(org.apache.hadoop.mapreduce.TaskAttemptContext ctx, String ext) throws IOException - Overrides:
getDefaultWorkFilein classorg.apache.hadoop.mapreduce.lib.output.FileOutputFormat<K,org.seqdoop.hadoop_bam.SAMRecordWritable> - Throws:
IOException
-
checkOutputSpecs
public void checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext job) - Overrides:
checkOutputSpecsin classorg.apache.hadoop.mapreduce.lib.output.FileOutputFormat<K,org.seqdoop.hadoop_bam.SAMRecordWritable>
-