public static class InterleavedFastqInputFormat.InterleavedFastqRecordReader extends org.apache.hadoop.mapreduce.RecordReader<Void,org.apache.hadoop.io.Text>
| Constructor and Description |
|---|
InterleavedFastqInputFormat.InterleavedFastqRecordReader(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.mapreduce.lib.input.FileSplit split) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this RecordReader to future operations.
|
org.apache.hadoop.io.Text |
createKey()
Create an object of the appropriate type to be used as a key.
|
org.apache.hadoop.io.Text |
createValue()
Create an object of the appropriate type to be used as a value.
|
Void |
getCurrentKey()
Added to use mapreduce API.
|
org.apache.hadoop.io.Text |
getCurrentValue()
Added to use mapreduce API.
|
long |
getPos()
Returns the current position in the input.
|
float |
getProgress()
How much of the input has the RecordReader consumed i.e.
|
void |
initialize(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
Added to use mapreduce API.
|
protected boolean |
lowLevelFastqRead(org.apache.hadoop.io.Text readName,
org.apache.hadoop.io.Text value) |
String |
makePositionMessage() |
boolean |
next(org.apache.hadoop.io.Text value)
Reads the next key/value pair from the input for processing.
|
boolean |
nextKeyValue()
Added to use mapreduce API.
|
public InterleavedFastqInputFormat.InterleavedFastqRecordReader(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.mapreduce.lib.input.FileSplit split)
throws IOException
IOExceptionpublic void initialize(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException,
InterruptedException
initialize in class org.apache.hadoop.mapreduce.RecordReader<Void,org.apache.hadoop.io.Text>IOExceptionInterruptedExceptionpublic Void getCurrentKey()
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<Void,org.apache.hadoop.io.Text>public org.apache.hadoop.io.Text getCurrentValue()
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<Void,org.apache.hadoop.io.Text>public boolean nextKeyValue()
throws IOException,
InterruptedException
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<Void,org.apache.hadoop.io.Text>IOExceptionInterruptedExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.mapreduce.RecordReader<Void,org.apache.hadoop.io.Text>IOExceptionpublic org.apache.hadoop.io.Text createKey()
public org.apache.hadoop.io.Text createValue()
public long getPos()
public float getProgress()
getProgress in class org.apache.hadoop.mapreduce.RecordReader<Void,org.apache.hadoop.io.Text>public String makePositionMessage()
protected boolean lowLevelFastqRead(org.apache.hadoop.io.Text readName,
org.apache.hadoop.io.Text value)
throws IOException
IOExceptionpublic boolean next(org.apache.hadoop.io.Text value)
throws IOException
IOExceptionCopyright © 2015. All rights reserved.