org.apache.hadoop.mapred
Class SequenceFileOutputFormat
java.lang.Object
org.apache.hadoop.mapred.OutputFormatBase
org.apache.hadoop.mapred.SequenceFileOutputFormat
- All Implemented Interfaces:
- OutputFormat
public class SequenceFileOutputFormat
- extends OutputFormatBase
An OutputFormat
that writes SequenceFile
s.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequenceFileOutputFormat
public SequenceFileOutputFormat()
getRecordWriter
public RecordWriter getRecordWriter(FileSystem fs,
JobConf job,
String name)
throws IOException
- Description copied from interface:
OutputFormat
- Construct a
RecordWriter
.
- Specified by:
getRecordWriter
in interface OutputFormat
- Specified by:
getRecordWriter
in class OutputFormatBase
- Parameters:
fs
- the file system to write tojob
- the job whose output is being writtenname
- the unique name for this part of the output
- Returns:
- a
RecordWriter
- Throws:
IOException
getReaders
public static SequenceFile.Reader[] getReaders(Configuration conf,
File dir)
throws IOException
- Open the output generated by this format.
- Throws:
IOException
Copyright © 2006 The Apache Software Foundation