public abstract class BAMRecordWriter<K> extends org.apache.hadoop.mapreduce.RecordWriter<K,SAMRecordWritable>
RecordWriter for BAM records.
Handles the output stream, writing the header if requested, and provides
the writeAlignment(htsjdk.samtools.SAMRecord) function for subclasses.
| Constructor and Description |
|---|
BAMRecordWriter(OutputStream output,
htsjdk.samtools.SAMFileHeader header,
boolean writeHeader) |
BAMRecordWriter(org.apache.hadoop.fs.Path output,
org.apache.hadoop.fs.Path input,
boolean writeHeader,
org.apache.hadoop.mapreduce.TaskAttemptContext ctx)
A SAMFileHeader is read from the input Path.
|
BAMRecordWriter(org.apache.hadoop.fs.Path output,
htsjdk.samtools.SAMFileHeader header,
boolean writeHeader,
org.apache.hadoop.mapreduce.TaskAttemptContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(org.apache.hadoop.mapreduce.TaskAttemptContext ctx) |
protected void |
writeAlignment(htsjdk.samtools.SAMRecord rec) |
public BAMRecordWriter(org.apache.hadoop.fs.Path output,
org.apache.hadoop.fs.Path input,
boolean writeHeader,
org.apache.hadoop.mapreduce.TaskAttemptContext ctx)
throws IOException
IOExceptionpublic BAMRecordWriter(org.apache.hadoop.fs.Path output,
htsjdk.samtools.SAMFileHeader header,
boolean writeHeader,
org.apache.hadoop.mapreduce.TaskAttemptContext ctx)
throws IOException
IOExceptionpublic BAMRecordWriter(OutputStream output, htsjdk.samtools.SAMFileHeader header, boolean writeHeader) throws IOException
IOExceptionpublic void close(org.apache.hadoop.mapreduce.TaskAttemptContext ctx)
throws IOException
close in class org.apache.hadoop.mapreduce.RecordWriter<K,SAMRecordWritable>IOExceptionprotected void writeAlignment(htsjdk.samtools.SAMRecord rec)
throws IOException
IOExceptionCopyright © 2017. All rights reserved.