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 java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class org.apache.hadoop.mapreduce.RecordReader<ResourceContext,MetaData>java.io.IOExceptionpublic ResourceContext getCurrentKey() throws java.io.IOException, java.lang.InterruptedException
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<ResourceContext,MetaData>java.io.IOExceptionjava.lang.InterruptedExceptionpublic MetaData getCurrentValue() throws java.io.IOException, java.lang.InterruptedException
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<ResourceContext,MetaData>java.io.IOExceptionjava.lang.InterruptedExceptionpublic float getProgress()
throws java.io.IOException,
java.lang.InterruptedException
getProgress in class org.apache.hadoop.mapreduce.RecordReader<ResourceContext,MetaData>java.io.IOExceptionjava.lang.InterruptedExceptionpublic void initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws java.io.IOException,
java.lang.InterruptedException
initialize in class org.apache.hadoop.mapreduce.RecordReader<ResourceContext,MetaData>java.io.IOExceptionjava.lang.InterruptedExceptionpublic boolean nextKeyValue()
throws java.io.IOException,
java.lang.InterruptedException
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<ResourceContext,MetaData>java.io.IOExceptionjava.lang.InterruptedExceptionCopyright © 2019 The International Internet Preservation Consortium. All Rights Reserved.