public abstract class SAMRecordWriter<K> extends org.apache.hadoop.mapreduce.RecordWriter<K,SAMRecordWritable>
RecordWriter for SAM records.
Handles the output stream, writing the header if requested, and provides
the writeAlignment(htsjdk.samtools.SAMRecord) function for subclasses.
| Constructor and Description |
|---|
SAMRecordWriter(OutputStream output,
htsjdk.samtools.SAMFileHeader header,
boolean writeHeader) |
SAMRecordWriter(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.
|
SAMRecordWriter(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 SAMRecordWriter(org.apache.hadoop.fs.Path output,
org.apache.hadoop.fs.Path input,
boolean writeHeader,
org.apache.hadoop.mapreduce.TaskAttemptContext ctx)
throws IOException
IOExceptionpublic SAMRecordWriter(org.apache.hadoop.fs.Path output,
htsjdk.samtools.SAMFileHeader header,
boolean writeHeader,
org.apache.hadoop.mapreduce.TaskAttemptContext ctx)
throws IOException
IOExceptionpublic SAMRecordWriter(OutputStream output, htsjdk.samtools.SAMFileHeader header, boolean writeHeader) throws IOException
IOExceptionpublic void close(org.apache.hadoop.mapreduce.TaskAttemptContext ctx)
close in class org.apache.hadoop.mapreduce.RecordWriter<K,SAMRecordWritable>protected void writeAlignment(htsjdk.samtools.SAMRecord rec)
Copyright © 2017. All rights reserved.