org.apache.hadoop.mapred
Class MapFileOutputFormat
java.lang.Object
org.apache.hadoop.mapred.OutputFormatBase
org.apache.hadoop.mapred.MapFileOutputFormat
- All Implemented Interfaces:
- OutputFormat
public class MapFileOutputFormat
- extends OutputFormatBase
An OutputFormat
that writes MapFile
s.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapFileOutputFormat
public MapFileOutputFormat()
getRecordWriter
public RecordWriter getRecordWriter(FileSystem ignored,
JobConf job,
String name,
Progressable progress)
throws IOException
- Description copied from interface:
OutputFormat
- Get the
RecordWriter
for the given job.
- Specified by:
getRecordWriter
in interface OutputFormat
- Specified by:
getRecordWriter
in class OutputFormatBase
job
- configuration for the job whose output is being written.name
- the unique name for this part of the output.progress
- mechanism for reporting progress while writing to file.
- Returns:
- a
RecordWriter
to write the output for the job.
- Throws:
IOException
getReaders
public static MapFile.Reader[] getReaders(FileSystem ignored,
Path dir,
Configuration conf)
throws IOException
- Open the output generated by this format.
- Throws:
IOException
getEntry
public static <K extends WritableComparable,V extends Writable> Writable getEntry(MapFile.Reader[] readers,
Partitioner<K,V> partitioner,
K key,
V value)
throws IOException
- Get an entry from output generated by this class.
- Throws:
IOException
Copyright © 2006 The Apache Software Foundation