Class FastqLineRecordReader
- java.lang.Object
-
- org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>
-
- fr.ens.biologie.genomique.eoulsan.bio.io.hadoop.FastqLineRecordReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class FastqLineRecordReader extends org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>Treats keys as offset in file and value as line.
-
-
Field Summary
Fields Modifier and Type Field Description static StringMAX_LINE_LENGTH
-
Constructor Summary
Constructors Constructor Description FastqLineRecordReader()FastqLineRecordReader(byte[] recordDelimiter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.apache.hadoop.io.LongWritablegetCurrentKey()org.apache.hadoop.io.TextgetCurrentValue()floatgetProgress()Get the progress within the splitvoidinitialize(org.apache.hadoop.mapreduce.InputSplit genericSplit, org.apache.hadoop.mapreduce.TaskAttemptContext context)booleannextKeyValue()booleannextKeyValue(boolean cont)
-
-
-
Field Detail
-
MAX_LINE_LENGTH
public static final String MAX_LINE_LENGTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize(org.apache.hadoop.mapreduce.InputSplit genericSplit, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException- Specified by:
initializein classorg.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>- Throws:
IOException
-
nextKeyValue
public boolean nextKeyValue() throws IOException- Specified by:
nextKeyValuein classorg.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>- Throws:
IOException
-
nextKeyValue
public boolean nextKeyValue(boolean cont) throws IOException- Throws:
IOException
-
getCurrentKey
public org.apache.hadoop.io.LongWritable getCurrentKey()
- Specified by:
getCurrentKeyin classorg.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>
-
getCurrentValue
public org.apache.hadoop.io.Text getCurrentValue()
- Specified by:
getCurrentValuein classorg.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>
-
getProgress
public float getProgress() throws IOExceptionGet the progress within the split- Specified by:
getProgressin classorg.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classorg.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>- Throws:
IOException
-
-