@InterfaceAudience.Public @InterfaceStability.Stable public abstract class CombineFileRecordReaderWrapper<K,V> extends Object implements 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,
                              Configuration conf,
                              Reporter reporter,
                              Integer idx) | 
| 修飾子とタイプ | メソッドと説明 | 
|---|---|
| void | close()Close this  InputSplitto future operations. | 
| K | createKey()Create an object of the appropriate type to be used as a key. | 
| V | createValue()Create an object of the appropriate type to be used as a value. | 
| long | getPos()Returns the current position in the input. | 
| float | getProgress()How much of the input has the  RecordReaderconsumed i.e. | 
| boolean | next(K key,
    V value)Reads the next key/value pair from the input for processing. | 
protected CombineFileRecordReaderWrapper(FileInputFormat<K,V> inputFormat, CombineFileSplit split, Configuration conf, Reporter reporter, Integer idx) throws IOException
IOExceptionpublic boolean next(K key, V value) throws IOException
RecordReadernext インタフェース内 RecordReader<K,V>key - the key to read data intovalue - the value to read data intoIOExceptionpublic K createKey()
RecordReadercreateKey インタフェース内 RecordReader<K,V>public V createValue()
RecordReadercreateValue インタフェース内 RecordReader<K,V>public long getPos() throws IOException
RecordReadergetPos インタフェース内 RecordReader<K,V>IOExceptionpublic void close() throws IOException
RecordReaderInputSplit to future operations.close インタフェース内 RecordReader<K,V>IOExceptionpublic float getProgress() throws IOException
RecordReaderRecordReader consumed i.e.
 has been processed by?getProgress インタフェース内 RecordReader<K,V>0.0 to 1.0.IOExceptionCopyright © 2016 Apache Software Foundation. All rights reserved.