public class SAMRecordWritable extends Object implements org.apache.hadoop.io.Writable
Writable SAMRecord.
In every mapper, the record will have a header, since BAMInputFormat
provides one. It is lost when transferring the SAMRecord to a reducer,
however. The current implementation of BAMRecordCodec does not
require a record for encoding nor decoding of a SAMRecord, so
this fortunately doesn't matter for either write(java.io.DataOutput) or readFields(java.io.DataInput).
| Constructor and Description |
|---|
SAMRecordWritable() |
| Modifier and Type | Method and Description |
|---|---|
htsjdk.samtools.SAMRecord |
get() |
void |
readFields(DataInput in) |
void |
set(htsjdk.samtools.SAMRecord r) |
String |
toString() |
void |
write(DataOutput out) |
public htsjdk.samtools.SAMRecord get()
public void set(htsjdk.samtools.SAMRecord r)
public void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionCopyright © 2016. All rights reserved.