public class MapFileOutputFormat extends FileOutputFormat<WritableComparable,Writable>
OutputFormat
that writes MapFile
s.FileOutputFormat.Counter
构造器和说明 |
---|
MapFileOutputFormat() |
限定符和类型 | 方法和说明 |
---|---|
static <K extends WritableComparable,V extends Writable> |
getEntry(MapFile.Reader[] readers,
Partitioner<K,V> partitioner,
K key,
V value)
Get an entry from output generated by this class.
|
static 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
RecordWriter for the given job. |
checkOutputSpecs, getCompressOutput, getOutputCompressorClass, getOutputPath, getPathForCustomFile, getTaskOutputPath, getUniqueName, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputPath
public RecordWriter<WritableComparable,Writable> getRecordWriter(FileSystem ignored, JobConf job, String name, Progressable progress) throws IOException
OutputFormat
RecordWriter
for the given job.getRecordWriter
在接口中 OutputFormat<WritableComparable,Writable>
getRecordWriter
在类中 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.IOException
public static MapFile.Reader[] getReaders(FileSystem ignored, Path dir, Configuration conf) throws IOException
IOException
public static <K extends WritableComparable,V extends Writable> Writable getEntry(MapFile.Reader[] readers, Partitioner<K,V> partitioner, K key, V value) throws IOException
IOException
Copyright © 2009 The Apache Software Foundation