org.apache.hadoop.examples.terasort
Class TeraOutputFormat
java.lang.Object
org.apache.hadoop.mapreduce.OutputFormat<K,V>
org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
org.apache.hadoop.examples.terasort.TeraOutputFormat
public class TeraOutputFormat
- extends org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
An output format that writes the key and value appended together.
| Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat |
org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter |
| Fields inherited from class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat |
BASE_OUTPUT_NAME, COMPRESS, COMPRESS_CODEC, COMPRESS_TYPE, OUTDIR, PART |
|
Method Summary |
void |
checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext job)
|
static boolean |
getFinalSync(org.apache.hadoop.mapreduce.JobContext job)
Does the user want a final sync at close? |
org.apache.hadoop.mapreduce.OutputCommitter |
getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
|
org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> |
getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext job)
|
| Methods inherited from class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat |
getCompressOutput, getDefaultWorkFile, getOutputCompressorClass, getOutputName, getOutputPath, getPathForWorkFile, getUniqueFile, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputName, setOutputPath |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TeraOutputFormat
public TeraOutputFormat()
getFinalSync
public static boolean getFinalSync(org.apache.hadoop.mapreduce.JobContext job)
- Does the user want a final sync at close?
checkOutputSpecs
public void checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext job)
throws org.apache.hadoop.mapred.InvalidJobConfException,
IOException
- Overrides:
checkOutputSpecs in class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
- Throws:
org.apache.hadoop.mapred.InvalidJobConfException
IOException
getRecordWriter
public org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext job)
throws IOException
- Specified by:
getRecordWriter in class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
- Throws:
IOException
getOutputCommitter
public org.apache.hadoop.mapreduce.OutputCommitter getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException
- Overrides:
getOutputCommitter in class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
- Throws:
IOException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.