org.apache.hadoop.mapred
Class MapFileOutputFormat

java.lang.Object
  extended by org.apache.hadoop.mapred.OutputFormatBase
      extended by org.apache.hadoop.mapred.MapFileOutputFormat
All Implemented Interfaces:
OutputFormat

public class MapFileOutputFormat
extends OutputFormatBase

An OutputFormat that writes MapFiles.


Constructor Summary
MapFileOutputFormat()
           
 
Method Summary
static Writable getEntry(MapFile.Reader[] readers, Partitioner partitioner, WritableComparable key, Writable value)
          Get an entry from output generated by this class.
static MapFile.Reader[] getReaders(FileSystem fs, File dir, Configuration conf)
          Deprecated. Call getReaders(FileSystem, Path, Configuration).
static MapFile.Reader[] getReaders(FileSystem fs, Path dir, Configuration conf)
          Open the output generated by this format.
 RecordWriter getRecordWriter(FileSystem fs, JobConf job, String name)
          Construct a RecordWriter.
 
Methods inherited from class org.apache.hadoop.mapred.OutputFormatBase
checkOutputSpecs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapFileOutputFormat

public MapFileOutputFormat()
Method Detail

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 to
job - the job whose output is being written
name - the unique name for this part of the output
Returns:
a RecordWriter
Throws:
IOException

getReaders

public static MapFile.Reader[] getReaders(FileSystem fs,
                                          File dir,
                                          Configuration conf)
                                   throws IOException
Deprecated. Call getReaders(FileSystem, Path, Configuration).

Throws:
IOException

getReaders

public static MapFile.Reader[] getReaders(FileSystem fs,
                                          Path dir,
                                          Configuration conf)
                                   throws IOException
Open the output generated by this format.

Throws:
IOException

getEntry

public static Writable getEntry(MapFile.Reader[] readers,
                                Partitioner partitioner,
                                WritableComparable key,
                                Writable value)
                         throws IOException
Get an entry from output generated by this class.

Throws:
IOException


Copyright © 2006 The Apache Software Foundation