org.apache.hadoop.streaming
Class StreamInputFormat

java.lang.Object
  extended by org.apache.hadoop.mapred.FileInputFormat
      extended by org.apache.hadoop.mapred.TextInputFormat
          extended by org.apache.hadoop.mapred.KeyValueTextInputFormat
              extended by org.apache.hadoop.streaming.StreamInputFormat
All Implemented Interfaces:
InputFormat, JobConfigurable

public class StreamInputFormat
extends KeyValueTextInputFormat

An input format that selects a RecordReader based on a JobConf property. This should be used only for non-standard record reader such as StreamXmlRecordReader. For all other standard record readers, the appropriate input format classes should be used.


Field Summary
 
Fields inherited from class org.apache.hadoop.mapred.FileInputFormat
LOG
 
Constructor Summary
StreamInputFormat()
           
 
Method Summary
 RecordReader getRecordReader(InputSplit genericSplit, JobConf job, Reporter reporter)
          Construct a RecordReader for a FileSplit.
 
Methods inherited from class org.apache.hadoop.mapred.TextInputFormat
configure, isSplitable
 
Methods inherited from class org.apache.hadoop.mapred.FileInputFormat
getSplits, listPaths, setMinSplitSize, validateInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamInputFormat

public StreamInputFormat()
Method Detail

getRecordReader

public RecordReader getRecordReader(InputSplit genericSplit,
                                    JobConf job,
                                    Reporter reporter)
                             throws IOException
Description copied from interface: InputFormat
Construct a RecordReader for a FileSplit.

Specified by:
getRecordReader in interface InputFormat
Overrides:
getRecordReader in class KeyValueTextInputFormat
Parameters:
genericSplit - the InputSplit
job - the job that this split belongs to
Returns:
a RecordReader
Throws:
IOException


Copyright © 2006 The Apache Software Foundation