@InterfaceAudience.Public @InterfaceStability.Stable public class MapFileOutputFormat extends FileOutputFormat<org.apache.hadoop.io.WritableComparable<?>,org.apache.hadoop.io.Writable>
OutputFormat that writes
MapFiles.FileOutputFormat.CounterBASE_OUTPUT_NAME, COMPRESS, COMPRESS_CODEC, COMPRESS_TYPE, OUTDIR, PART| Constructor and Description |
|---|
MapFileOutputFormat() |
| Modifier and Type | Method and Description |
|---|---|
static <K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.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(org.apache.hadoop.fs.Path dir,
org.apache.hadoop.conf.Configuration conf)
Open the output generated by this format.
|
RecordWriter<org.apache.hadoop.io.WritableComparable<?>,org.apache.hadoop.io.Writable> |
getRecordWriter(TaskAttemptContext context)
Get the
RecordWriter for the given task. |
checkOutputSpecs, getCompressOutput, getDefaultWorkFile, getOutputCommitter, getOutputCompressorClass, getOutputName, getOutputPath, getPathForWorkFile, getUniqueFile, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputName, setOutputPathpublic RecordWriter<org.apache.hadoop.io.WritableComparable<?>,org.apache.hadoop.io.Writable> getRecordWriter(TaskAttemptContext context) throws IOException
OutputFormatRecordWriter for the given task.getRecordWriter in class FileOutputFormat<org.apache.hadoop.io.WritableComparable<?>,org.apache.hadoop.io.Writable>context - the information about the current task.RecordWriter to write the output for the job.IOExceptionpublic static org.apache.hadoop.io.MapFile.Reader[] getReaders(org.apache.hadoop.fs.Path dir,
org.apache.hadoop.conf.Configuration conf)
throws IOException
IOExceptionpublic static <K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable> org.apache.hadoop.io.Writable getEntry(org.apache.hadoop.io.MapFile.Reader[] readers,
Partitioner<K,V> partitioner,
K key,
V value)
throws IOException
IOExceptionCopyright © 2008–2022 Apache Software Foundation. All rights reserved.