org.apache.nutch.mapReduce
Class SequenceFileInputFormat
java.lang.Object
org.apache.nutch.mapReduce.InputFormatBase
org.apache.nutch.mapReduce.SequenceFileInputFormat
- All Implemented Interfaces:
- InputFormat
- public class SequenceFileInputFormat
- extends InputFormatBase
An InputFormat
for plain text files. Files are broken into lines.
Either linefeed or carriage-return are used to signal end of line. Keys are
the position in the file, and values are the line of text..
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequenceFileInputFormat
public SequenceFileInputFormat()
getName
public String getName()
- Description copied from interface:
InputFormat
- The name of this input format.
- Specified by:
getName
in interface InputFormat
- Specified by:
getName
in class InputFormatBase
getRecordReader
public RecordReader getRecordReader(NutchFileSystem fs,
FileSplit split,
JobConf job)
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
- Throws:
IOException
Copyright © 2006 The Apache Software Foundation