org.apache.hadoop.streaming
Class TupleInputFormat

java.lang.Object
  extended by org.apache.hadoop.mapred.InputFormatBase
      extended by org.apache.hadoop.streaming.TupleInputFormat
All Implemented Interfaces:
InputFormat

public class TupleInputFormat
extends InputFormatBase

Author:
Michel Tourn

Field Summary
 
Fields inherited from class org.apache.hadoop.mapred.InputFormatBase
LOG
 
Constructor Summary
TupleInputFormat()
           
 
Method Summary
 void addSecondary(InputFormat fmt)
           
 RecordReader getRecordReader(InputSplit split, JobConf job, Reporter reporter)
          Construct a RecordReader for a FileSplit.
 void setPrimary(InputFormat fmt)
           
 
Methods inherited from class org.apache.hadoop.mapred.InputFormatBase
getSplits, isSplitable, listPaths, setMinSplitSize, validateInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TupleInputFormat

public TupleInputFormat()
Method Detail

setPrimary

public void setPrimary(InputFormat fmt)

addSecondary

public void addSecondary(InputFormat fmt)

getRecordReader

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

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


Copyright © 2006 The Apache Software Foundation