public class DynamicRecordReader<K,V> extends RecordReader<K,V>
Constructor and Description |
---|
DynamicRecordReader() |
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(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
in class 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
in class RecordReader<K,V>
IOException,
- on failure.InterruptedException
IOException
public K getCurrentKey() throws IOException, InterruptedException
getCurrentKey
in class RecordReader<K,V>
IOException,
- on failure.InterruptedException
IOException
public V getCurrentValue() throws IOException, InterruptedException
getCurrentValue
in class RecordReader<K,V>
IOException,
- on failure.InterruptedException
IOException
public float getProgress() throws IOException, InterruptedException
getProgress
in class RecordReader<K,V>
IOException,
- on failure.InterruptedException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class RecordReader<K,V>
IOException,
- on failure.IOException
Copyright © 2013 Apache Software Foundation. All rights reserved.