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.InterruptedException
IOException
public boolean nextKeyValue() throws IOException, InterruptedException
nextKeyValue
在类中 RecordReader<K,V>
IOException,
- on failure.InterruptedException
IOException
public K getCurrentKey() throws IOException, InterruptedException
getCurrentKey
在类中 RecordReader<K,V>
IOException,
- on failure.InterruptedException
IOException
public V getCurrentValue() throws IOException, InterruptedException
getCurrentValue
在类中 RecordReader<K,V>
IOException,
- on failure.InterruptedException
IOException
public float getProgress() throws IOException, InterruptedException
getProgress
在类中 RecordReader<K,V>
IOException,
- on failure.InterruptedException
IOException
public void close() throws IOException
close
在接口中 Closeable
close
在接口中 AutoCloseable
close
在类中 RecordReader<K,V>
IOException,
- on failure.IOException
Copyright © 2009 The Apache Software Foundation