public class ResourceRecordReader extends org.apache.hadoop.mapreduce.RecordReader<ResourceContext,MetaData>
| Constructor and Description |
|---|
ResourceRecordReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ResourceContext |
getCurrentKey() |
MetaData |
getCurrentValue() |
float |
getProgress() |
void |
initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context) |
boolean |
nextKeyValue() |
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.mapreduce.RecordReader<ResourceContext,MetaData>IOExceptionpublic ResourceContext getCurrentKey() throws IOException, InterruptedException
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<ResourceContext,MetaData>IOExceptionInterruptedExceptionpublic MetaData getCurrentValue() throws IOException, InterruptedException
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<ResourceContext,MetaData>IOExceptionInterruptedExceptionpublic float getProgress()
throws IOException,
InterruptedException
getProgress in class org.apache.hadoop.mapreduce.RecordReader<ResourceContext,MetaData>IOExceptionInterruptedExceptionpublic void initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException,
InterruptedException
initialize in class org.apache.hadoop.mapreduce.RecordReader<ResourceContext,MetaData>IOExceptionInterruptedExceptionpublic boolean nextKeyValue()
throws IOException,
InterruptedException
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<ResourceContext,MetaData>IOExceptionInterruptedExceptionCopyright © 2015 The International Internet Preservation Consortium. All Rights Reserved.