public static class FastaInputFormat.FastaRecordReader extends org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,ReferenceFragment>
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_LINE_LENGTH |
| Constructor and Description |
|---|
FastaRecordReader(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.
|
ReferenceFragment |
createValue()
Create an object of the appropriate type to be used as a value.
|
org.apache.hadoop.io.Text |
getCurrentKey()
Added to use mapreduce API.
|
ReferenceFragment |
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.
|
String |
makePositionMessage() |
String |
makePositionMessage(long pos) |
boolean |
next(org.apache.hadoop.io.Text key,
ReferenceFragment value)
Reads the next key/value pair from the input for processing.
|
boolean |
nextKeyValue()
Added to use mapreduce API.
|
protected void |
setConf(org.apache.hadoop.conf.Configuration conf) |
public static final int MAX_LINE_LENGTH
public FastaRecordReader(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.mapreduce.lib.input.FileSplit split)
throws IOException
IOExceptionprotected void setConf(org.apache.hadoop.conf.Configuration conf)
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<org.apache.hadoop.io.Text,ReferenceFragment>IOExceptionInterruptedExceptionpublic org.apache.hadoop.io.Text getCurrentKey()
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,ReferenceFragment>public ReferenceFragment getCurrentValue()
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,ReferenceFragment>public boolean nextKeyValue()
throws IOException,
InterruptedException
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,ReferenceFragment>IOExceptionInterruptedExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,ReferenceFragment>IOExceptionpublic org.apache.hadoop.io.Text createKey()
public ReferenceFragment createValue()
public long getPos()
public float getProgress()
getProgress in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,ReferenceFragment>public String makePositionMessage(long pos)
public String makePositionMessage()
public boolean next(org.apache.hadoop.io.Text key,
ReferenceFragment value)
throws IOException
IOExceptionCopyright © 2017. All rights reserved.