public static class MultiOutputFormat.JobConfigurer
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
addOutputFormat(java.lang.String alias,
java.lang.Class<? extends OutputFormat> outputFormatClass,
java.lang.Class<?> keyClass,
java.lang.Class<?> valueClass)
Add a OutputFormat configuration to the Job with a alias name.
|
void |
configure()
Configure the job with the multiple output formats added.
|
Job |
getJob(java.lang.String alias)
Get the Job configuration for a OutputFormat defined by the alias
name.
|
public void addOutputFormat(java.lang.String alias,
java.lang.Class<? extends OutputFormat> outputFormatClass,
java.lang.Class<?> keyClass,
java.lang.Class<?> valueClass)
throws java.io.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 datajava.io.IOExceptionpublic Job getJob(java.lang.String alias)
alias - the name used for the OutputFormat during
addOutputFormatpublic void configure()
Copyright © 2012 The Apache Software Foundation