org.apache.hadoop.mapred
Class SequenceFileAsTextInputFormat

java.lang.Object
  extended by org.apache.hadoop.mapred.FileInputFormat
      extended by org.apache.hadoop.mapred.SequenceFileInputFormat
          extended by org.apache.hadoop.mapred.SequenceFileAsTextInputFormat
All Implemented Interfaces:
InputFormat

public class SequenceFileAsTextInputFormat
extends SequenceFileInputFormat

This class is similar to SequenceFileInputFormat, except it generates SequenceFileAsTextRecordReader which converts the input keys and values to their String forms by calling toString() method.


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

Constructor Detail

SequenceFileAsTextInputFormat

public SequenceFileAsTextInputFormat()
Method Detail

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
Overrides:
getRecordReader in class SequenceFileInputFormat
Parameters:
split - the InputSplit
job - the job that this split belongs to
Returns:
a RecordReader
Throws:
IOException


Copyright © 2006 The Apache Software Foundation