public static class SingleFastqInputFormat.SingleFastqRecordReader extends org.apache.hadoop.mapreduce.RecordReader<Void,org.apache.hadoop.io.Text>
Constructor and Description |
---|
SingleFastqInputFormat.SingleFastqRecordReader(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 SingleFastqInputFormat.SingleFastqRecordReader(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.mapreduce.lib.input.FileSplit split) throws IOException
IOException
public 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>
IOException
InterruptedException
public 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>
IOException
InterruptedException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class org.apache.hadoop.mapreduce.RecordReader<Void,org.apache.hadoop.io.Text>
IOException
public 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
IOException
public boolean next(org.apache.hadoop.io.Text value) throws IOException
IOException
Copyright © 2015. All rights reserved.