| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapreduce.RecordReader<K,V>
org.apache.hadoop.mapreduce.lib.input.CombineFileRecordReaderWrapper<K,V>
@InterfaceAudience.Public @InterfaceStability.Stable public abstract class CombineFileRecordReaderWrapper<K,V>
A wrapper class for a record reader that handles a single file split. It
 delegates most of the methods to the wrapped instance. A concrete subclass
 needs to provide a constructor that calls this parent constructor with the
 appropriate input format. The subclass constructor must satisfy the specific
 constructor signature that is required by
 CombineFileRecordReader.
 Subclassing is needed to get a concrete record reader wrapper because of the
 constructor requirement.
CombineFileRecordReader, 
CombineFileInputFormat| Constructor Summary | |
|---|---|
protected  | 
CombineFileRecordReaderWrapper(FileInputFormat<K,V> inputFormat,
                                                             CombineFileSplit split,
                                                             TaskAttemptContext context,
                                                             Integer idx)
 | 
| Method Summary | |
|---|---|
 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.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
protected CombineFileRecordReaderWrapper(FileInputFormat<K,V> inputFormat,
                                         CombineFileSplit split,
                                         TaskAttemptContext context,
                                         Integer idx)
                                  throws IOException,
                                         InterruptedException
IOException
InterruptedException| Method Detail | 
|---|
public void initialize(InputSplit split,
                       TaskAttemptContext context)
                throws IOException,
                       InterruptedException
RecordReader
initialize in class RecordReader<K,V>split - the split that defines the range of records to readcontext - the information about the task
IOException
InterruptedException
public boolean nextKeyValue()
                     throws IOException,
                            InterruptedException
RecordReader
nextKeyValue in class RecordReader<K,V>IOException
InterruptedException
public K getCurrentKey()
                throws IOException,
                       InterruptedException
RecordReader
getCurrentKey in class RecordReader<K,V>IOException
InterruptedException
public V getCurrentValue()
                  throws IOException,
                         InterruptedException
RecordReader
getCurrentValue in class RecordReader<K,V>IOException
InterruptedException
public float getProgress()
                  throws IOException,
                         InterruptedException
RecordReader
getProgress in class RecordReader<K,V>IOException
InterruptedException
public void close()
           throws IOException
RecordReader
close in interface Closeableclose in class RecordReader<K,V>IOException
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||