@InterfaceAudience.Public @InterfaceStability.Stable public abstract class CombineFileRecordReaderWrapper<K,V> extends RecordReader<K,V>
CombineFileRecordReader.
Subclassing is needed to get a concrete record reader wrapper because of the
constructor requirement.| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
CombineFileRecordReaderWrapper(FileInputFormat<K,V> inputFormat,
CombineFileSplit split,
TaskAttemptContext context,
Integer idx) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
close()
Close the record reader.
|
K |
getCurrentKey()
Get the current key
|
V |
getCurrentValue()
Get the current value.
|
float |
getProgress()
The current progress of the record reader through its data.
|
void |
initialize(InputSplit split,
TaskAttemptContext context)
Called once at initialization.
|
boolean |
nextKeyValue()
Read the next key, value pair.
|
protected CombineFileRecordReaderWrapper(FileInputFormat<K,V> inputFormat, CombineFileSplit split, TaskAttemptContext context, Integer idx) throws IOException, InterruptedException
public void initialize(InputSplit split, TaskAttemptContext context) throws IOException, InterruptedException
RecordReaderinitialize クラス内 RecordReader<K,V>split - the split that defines the range of records to readcontext - the information about the taskIOExceptionInterruptedExceptionpublic boolean nextKeyValue() throws IOException, InterruptedException
RecordReadernextKeyValue クラス内 RecordReader<K,V>IOExceptionInterruptedExceptionpublic K getCurrentKey() throws IOException, InterruptedException
RecordReadergetCurrentKey クラス内 RecordReader<K,V>IOExceptionInterruptedExceptionpublic V getCurrentValue() throws IOException, InterruptedException
RecordReadergetCurrentValue クラス内 RecordReader<K,V>IOExceptionInterruptedExceptionpublic float getProgress() throws IOException, InterruptedException
RecordReadergetProgress クラス内 RecordReader<K,V>IOExceptionInterruptedExceptionpublic void close() throws IOException
RecordReaderclose インタフェース内 Closeableclose インタフェース内 AutoCloseableclose クラス内 RecordReader<K,V>IOExceptionCopyright © 2016 Apache Software Foundation. All rights reserved.