E - The Dataset entity type.K - The type of the key to convert.V - The type of the value to convert.public abstract class AbstractKeyRecordReaderWrapper<E,K,V> extends RecordReader<E,Void>
RecordReader<K, V> to a
RecordReader<E, Void>.| Modifier and Type | Field and Description |
|---|---|
protected RecordReader<K,V> |
delegate |
| Constructor and Description |
|---|
AbstractKeyRecordReaderWrapper(InputFormat<K,V> inputFormat) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Void |
getCurrentValue() |
float |
getProgress() |
void |
initialize(InputSplit inputSplit,
TaskAttemptContext taskAttemptContext) |
boolean |
nextKeyValue() |
getCurrentKeyprotected RecordReader<K,V> delegate
public AbstractKeyRecordReaderWrapper(InputFormat<K,V> inputFormat)
public void initialize(InputSplit inputSplit, TaskAttemptContext taskAttemptContext) throws IOException, InterruptedException
initialize in class RecordReader<E,Void>IOExceptionInterruptedExceptionpublic boolean nextKeyValue()
throws IOException,
InterruptedException
nextKeyValue in class RecordReader<E,Void>IOExceptionInterruptedExceptionpublic Void getCurrentValue() throws IOException, InterruptedException
getCurrentValue in class RecordReader<E,Void>IOExceptionInterruptedExceptionpublic float getProgress()
throws IOException,
InterruptedException
getProgress in class RecordReader<E,Void>IOExceptionInterruptedExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class RecordReader<E,Void>IOExceptionCopyright © 2013–2015. All rights reserved.