public class DynamicRecordReader<K,V>
extends org.apache.hadoop.mapreduce.RecordReader<K,V>
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Implementation of RecordReader::close().
|
K |
getCurrentKey()
Implementation of RecordReader::getCurrentKey().
|
V |
getCurrentValue()
Implementation of RecordReader::getCurrentValue().
|
float |
getProgress()
Implementation of RecordReader::getProgress().
|
void |
initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext taskAttemptContext)
Implementation for RecordReader::initialize().
|
boolean |
nextKeyValue()
Implementation of RecordReader::nextValue().
|
public void initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext taskAttemptContext)
throws IOException,
InterruptedException
initialize in class org.apache.hadoop.mapreduce.RecordReader<K,V>inputSplit - The InputSplit for the map. Ignored entirely.taskAttemptContext - The AttemptContext.IOExceptionInterruptedExceptionpublic boolean nextKeyValue()
throws IOException,
InterruptedException
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<K,V>IOExceptionInterruptedExceptionpublic K getCurrentKey() throws IOException, InterruptedException
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<K,V>IOExceptionInterruptedExceptionpublic V getCurrentValue() throws IOException, InterruptedException
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<K,V>IOExceptionInterruptedExceptionpublic float getProgress()
throws IOException,
InterruptedException
getProgress in class org.apache.hadoop.mapreduce.RecordReader<K,V>IOExceptionInterruptedExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.mapreduce.RecordReader<K,V>IOExceptionCopyright © 2008–2020 Apache Software Foundation. All rights reserved.