Example usage for Java org.apache.hadoop.mapreduce.lib.output MultipleOutputs fields, constructors, methods, implement or subclass
The text is from its open source code.
MultipleOutputs(TaskInputOutputContext, ?, KEYOUT, VALUEOUT> context) Creates and initializes multiple outputs support, it should be instantiated in the Mapper/Reducer setup method. |
void | addNamedOutput(Job job, String namedOutput, Class extends OutputFormat> outputFormatClass, Class> keyClass, Class> valueClass) Adds a named output for the job. |
void | close() Closes all the opened outputs. |
void | setCountersEnabled(Job job, boolean enabled) Enables or disables counters for the named outputs. |
void | write(String namedOutput, K key, V value) Write key and value to the namedOutput. |
void | write(KEYOUT key, VALUEOUT value, String baseOutputPath) Write key value to an output file name. |