public static class MultiOutputFormat.JobConfigurer extends Object
Modifier and Type | Method and Description |
---|---|
void |
addOutputFormat(String alias,
Class<? extends org.apache.hadoop.mapreduce.OutputFormat> outputFormatClass,
Class<?> keyClass,
Class<?> valueClass)
Add a OutputFormat configuration to the Job with a alias name.
|
void |
configure()
Configure the job with the multiple output formats added.
|
org.apache.hadoop.mapreduce.Job |
getJob(String alias)
Get the Job configuration for a OutputFormat defined by the alias
name.
|
public void addOutputFormat(String alias, Class<? extends org.apache.hadoop.mapreduce.OutputFormat> outputFormatClass, Class<?> keyClass, Class<?> valueClass) throws IOException
alias
- the name to be given to the OutputFormat configurationoutputFormatClass
- OutputFormat classkeyClass
- the key class for the output datavalueClass
- the value class for the output dataIOException
public org.apache.hadoop.mapreduce.Job getJob(String alias)
alias
- the name used for the OutputFormat during
addOutputFormatpublic void configure()
Copyright © 2017 The Apache Software Foundation. All rights reserved.