Package org.apache.hadoop.mapred.join
Interface ComposableInputFormat<K extends WritableComparable,V extends Writable>
- All Superinterfaces:
InputFormat<K,V>
- All Known Implementing Classes:
CompositeInputFormat,Parser.Node
@Public
@Stable
public interface ComposableInputFormat<K extends WritableComparable,V extends Writable>
extends InputFormat<K,V>
Refinement of InputFormat requiring implementors to provide
ComposableRecordReader instead of RecordReader.
-
Method Summary
Modifier and TypeMethodDescriptiongetRecordReader(InputSplit split, JobConf job, Reporter reporter) Get theRecordReaderfor the givenInputSplit.Methods inherited from interface org.apache.hadoop.mapred.InputFormat
getSplits
-
Method Details
-
getRecordReader
ComposableRecordReader<K,V> getRecordReader(InputSplit split, JobConf job, Reporter reporter) throws IOException Description copied from interface:InputFormatGet theRecordReaderfor the givenInputSplit.It is the responsibility of the
RecordReaderto respect record boundaries while processing the logical split to present a record-oriented view to the individual task.- Specified by:
getRecordReaderin interfaceInputFormat<K extends WritableComparable,V extends Writable> - Parameters:
split- theInputSplitjob- the job that this split belongs to- Returns:
- a
RecordReader - Throws:
IOException
-