Class SAMRecordWriter

java.lang.Object
org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
fr.ens.biologie.genomique.eoulsan.bio.io.hadoop.SAMRecordWriter

public class SAMRecordWriter extends org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
This class define a RecordWriter for SAM files.
Since:
2.0
Author:
Laurent Jourdren
  • Constructor Summary

    Constructors
    Constructor
    Description
    SAMRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context, DataOutputStream out)
    Public constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    close(org.apache.hadoop.mapreduce.TaskAttemptContext context)
     
    void
    write(org.apache.hadoop.io.Text key, org.apache.hadoop.io.Text value)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SAMRecordWriter

      public SAMRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context, DataOutputStream out)
      Public constructor.
      Parameters:
      context - the context
      out - data output stream
  • Method Details

    • write

      public void write(org.apache.hadoop.io.Text key, org.apache.hadoop.io.Text value) throws IOException, InterruptedException
      Specified by:
      write in class org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
      Throws:
      IOException
      InterruptedException
    • close

      public void close(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException
      Specified by:
      close in class org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
      Throws:
      IOException