public class DynamicRecordReader<K,V> extends RecordReader<K,V>
| 构造器和说明 |
|---|
DynamicRecordReader() |
| 限定符和类型 | 方法和说明 |
|---|---|
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(InputSplit inputSplit,
TaskAttemptContext taskAttemptContext)
Implementation for RecordReader::initialize().
|
boolean |
nextKeyValue()
Implementation of RecordReader::nextValue().
|
public void initialize(InputSplit inputSplit, TaskAttemptContext taskAttemptContext) throws IOException, InterruptedException
initialize 在类中 RecordReader<K,V>inputSplit - The InputSplit for the map. Ignored entirely.taskAttemptContext - The AttemptContext.IOException, - on failure.InterruptedExceptionIOExceptionpublic boolean nextKeyValue()
throws IOException,
InterruptedException
nextKeyValue 在类中 RecordReader<K,V>IOException, - on failure.InterruptedExceptionIOExceptionpublic K getCurrentKey() throws IOException, InterruptedException
getCurrentKey 在类中 RecordReader<K,V>IOException, - on failure.InterruptedExceptionIOExceptionpublic V getCurrentValue() throws IOException, InterruptedException
getCurrentValue 在类中 RecordReader<K,V>IOException, - on failure.InterruptedExceptionIOExceptionpublic float getProgress()
throws IOException,
InterruptedException
getProgress 在类中 RecordReader<K,V>IOException, - on failure.InterruptedExceptionIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 RecordReader<K,V>IOException, - on failure.IOExceptionCopyright © 2009 The Apache Software Foundation