@InterfaceAudience.Public @InterfaceStability.Stable public class MapFileOutputFormat extends FileOutputFormat<WritableComparable,Writable>
OutputFormat that writes MapFiles.| Constructor and Description | 
|---|
| MapFileOutputFormat() | 
| Modifier and Type | Method and Description | 
|---|---|
| static <K extends WritableComparable,V extends Writable> | getEntry(org.apache.hadoop.io.MapFile.Reader[] readers,
        Partitioner<K,V> partitioner,
        K key,
        V value)Get an entry from output generated by this class. | 
| static org.apache.hadoop.io.MapFile.Reader[] | getReaders(FileSystem ignored,
          Path dir,
          Configuration conf)Open the output generated by this format. | 
| RecordWriter<WritableComparable,Writable> | getRecordWriter(FileSystem ignored,
               JobConf job,
               String name,
               Progressable progress)Get the  RecordWriterfor the given job. | 
checkOutputSpecs, getCompressOutput, getOutputCompressorClass, getOutputPath, getPathForCustomFile, getTaskOutputPath, getUniqueName, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputPathpublic MapFileOutputFormat()
public RecordWriter<WritableComparable,Writable> getRecordWriter(FileSystem ignored, JobConf job, String name, Progressable progress) throws IOException
OutputFormatRecordWriter for the given job.getRecordWriter in interface OutputFormat<WritableComparable,Writable>getRecordWriter in class FileOutputFormat<WritableComparable,Writable>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.RecordWriter to write the output for the job.IOExceptionpublic static org.apache.hadoop.io.MapFile.Reader[] getReaders(FileSystem ignored, Path dir, Configuration conf) throws IOException
IOExceptionpublic static <K extends WritableComparable,V extends Writable> Writable getEntry(org.apache.hadoop.io.MapFile.Reader[] readers, Partitioner<K,V> partitioner, K key, V value) throws IOException
IOExceptionCopyright © 2017 Apache Software Foundation. All rights reserved.