public static class MedlineCitationInputFormatOld.MedlineCitationRecordReader extends Object implements org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,MedlineCitation>
RecordReader for reading MEDLINE citations in XML format.| Constructor and Description |
|---|
MedlineCitationInputFormatOld.MedlineCitationRecordReader(org.apache.hadoop.mapred.FileSplit split,
org.apache.hadoop.mapred.JobConf conf)
Creates a
MedlineCitationRecordReader. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this InputSplit.
|
org.apache.hadoop.io.LongWritable |
createKey()
Creates an object for the key.
|
MedlineCitation |
createValue()
Creates an object for the value.
|
long |
getPos()
Returns the current position in the input.
|
float |
getProgress()
Returns progress on how much input has been consumed.
|
boolean |
next(org.apache.hadoop.io.LongWritable key,
MedlineCitation value)
Reads the next key-value pair.
|
public MedlineCitationInputFormatOld.MedlineCitationRecordReader(org.apache.hadoop.mapred.FileSplit split,
org.apache.hadoop.mapred.JobConf conf)
throws IOException
MedlineCitationRecordReader.IOExceptionpublic boolean next(org.apache.hadoop.io.LongWritable key,
MedlineCitation value)
throws IOException
next in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,MedlineCitation>IOExceptionpublic org.apache.hadoop.io.LongWritable createKey()
createKey in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,MedlineCitation>public MedlineCitation createValue()
createValue in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,MedlineCitation>public long getPos()
throws IOException
getPos in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,MedlineCitation>IOExceptionpublic void close()
throws IOException
close in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,MedlineCitation>IOExceptionpublic float getProgress()
throws IOException
getProgress in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,MedlineCitation>IOExceptionCopyright © 2015. All rights reserved.