public class FormatBundle<K> extends Object implements Serializable
InputFormat
or OutputFormat
and any extra
configuration information that format class needs to run.
The FormatBundle
allow us to let different formats act as
if they are the only format that exists in a particular MapReduce job, even
when we have multiple types of inputs and outputs within a single job.
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.conf.Configuration |
configure(org.apache.hadoop.conf.Configuration conf) |
boolean |
equals(Object other) |
static <T extends org.apache.hadoop.mapreduce.InputFormat<?,?>> |
forInput(Class<T> inputFormatClass) |
static <T extends org.apache.hadoop.mapreduce.OutputFormat<?,?>> |
forOutput(Class<T> inputFormatClass) |
static <T> FormatBundle<T> |
fromSerialized(String serialized,
Class<T> clazz) |
Class<K> |
getFormatClass() |
String |
getName() |
int |
hashCode() |
String |
serialize() |
FormatBundle<K> |
set(String key,
String value) |
public static <T> FormatBundle<T> fromSerialized(String serialized, Class<T> clazz)
public static <T extends org.apache.hadoop.mapreduce.InputFormat<?,?>> FormatBundle<T> forInput(Class<T> inputFormatClass)
public static <T extends org.apache.hadoop.mapreduce.OutputFormat<?,?>> FormatBundle<T> forOutput(Class<T> inputFormatClass)
public FormatBundle<K> set(String key, String value)
public org.apache.hadoop.conf.Configuration configure(org.apache.hadoop.conf.Configuration conf)
public String serialize()
public String getName()
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.