public static class XMLLoader.XMLFileRecordReader
extends org.apache.hadoop.mapreduce.RecordReader
| Constructor and Description |
|---|
XMLLoader.XMLFileRecordReader(String recordIdentifier) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Object |
getCurrentKey() |
Object |
getCurrentValue() |
float |
getProgress() |
void |
initialize(org.apache.hadoop.mapreduce.InputSplit genericSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context) |
boolean |
nextKeyValue() |
public XMLLoader.XMLFileRecordReader(String recordIdentifier)
public void initialize(org.apache.hadoop.mapreduce.InputSplit genericSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException,
InterruptedException
initialize in class org.apache.hadoop.mapreduce.RecordReaderIOExceptionInterruptedExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.mapreduce.RecordReaderIOExceptionpublic Object getCurrentKey() throws IOException, InterruptedException
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReaderIOExceptionInterruptedExceptionpublic Object getCurrentValue() throws IOException, InterruptedException
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReaderIOExceptionInterruptedExceptionpublic float getProgress()
throws IOException,
InterruptedException
getProgress in class org.apache.hadoop.mapreduce.RecordReaderIOExceptionInterruptedExceptionpublic boolean nextKeyValue()
throws IOException,
InterruptedException
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReaderIOExceptionInterruptedExceptionCopyright © 2007-2012 The Apache Software Foundation