org.apache.hadoop.mapred
Class SequenceFileAsTextInputFormat
java.lang.Object
org.apache.hadoop.mapred.FileInputFormat<K,V>
org.apache.hadoop.mapred.SequenceFileInputFormat<Text,Text>
org.apache.hadoop.mapred.SequenceFileAsTextInputFormat
- All Implemented Interfaces:
- InputFormat<Text,Text>
public class SequenceFileAsTextInputFormat
- extends SequenceFileInputFormat<Text,Text>
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.
Methods inherited from class org.apache.hadoop.mapred.FileInputFormat |
addInputPath, addInputPaths, computeSplitSize, getBlockIndex, getInputPathFilter, getInputPaths, getSplitHosts, getSplits, isSplitable, setInputPathFilter, setInputPaths, setInputPaths, setMinSplitSize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequenceFileAsTextInputFormat
public SequenceFileAsTextInputFormat()
getRecordReader
public RecordReader<Text,Text> getRecordReader(InputSplit split,
JobConf job,
Reporter reporter)
throws IOException
- Description copied from interface:
InputFormat
- Get the
RecordReader
for the given InputSplit
.
It is the responsibility of the RecordReader
to respect
record boundaries while processing the logical split to present a
record-oriented view to the individual task.
- Specified by:
getRecordReader
in interface InputFormat<Text,Text>
- Overrides:
getRecordReader
in class SequenceFileInputFormat<Text,Text>
- Parameters:
split
- the InputSplit
job
- the job that this split belongs to
- Returns:
- a
RecordReader
- Throws:
IOException
Copyright © 2009 The Apache Software Foundation