CrunchOutputs(org.apache.hadoop.mapreduce.TaskInputOutputContext<?,?,K,V> context)
Creates and initializes multiple outputs support,
it should be instantiated in the Mapper/Reducer setup method.
Method Summary
static void
addNamedOutput(org.apache.hadoop.mapreduce.Job job,
String name,
Class<? extends org.apache.hadoop.mapreduce.OutputFormat> outputFormatClass,
Class keyClass,
Class valueClass)
static void
addNamedOutput(org.apache.hadoop.mapreduce.Job job,
String name,
FormatBundle<? extends org.apache.hadoop.mapreduce.OutputFormat> outputBundle,
Class keyClass,
Class valueClass)
public CrunchOutputs(org.apache.hadoop.mapreduce.TaskInputOutputContext<?,?,K,V> context)
Creates and initializes multiple outputs support,
it should be instantiated in the Mapper/Reducer setup method.
Parameters:
context - the TaskInputOutputContext object
Method Detail
addNamedOutput
public static void addNamedOutput(org.apache.hadoop.mapreduce.Job job,
String name,
Class<? extends org.apache.hadoop.mapreduce.OutputFormat> outputFormatClass,
Class keyClass,
Class valueClass)
addNamedOutput
public static void addNamedOutput(org.apache.hadoop.mapreduce.Job job,
String name,
FormatBundle<? extends org.apache.hadoop.mapreduce.OutputFormat> outputBundle,
Class keyClass,
Class valueClass)