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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()org.apache.hadoop.io.LongWritableorg.apache.hadoop.io.TextfloatGet the progress within the splitvoidinitialize(org.apache.hadoop.mapreduce.InputSplit genericSplit, org.apache.hadoop.mapreduce.TaskAttemptContext context) booleanbooleannextKeyValue(boolean cont)
-
Field Details
-
MAX_LINE_LENGTH
- See Also:
-
-
Constructor Details
-
FastqLineRecordReader
public FastqLineRecordReader() -
FastqLineRecordReader
public FastqLineRecordReader(byte[] recordDelimiter)
-
-
Method Details
-
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
- Specified by:
nextKeyValuein classorg.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text> - Throws:
IOException
-
nextKeyValue
- 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
Get 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
- 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
-