Java org.apache.hadoop.mapreduce.lib.output MultipleOutputs fields, constructors, methods, implement or subclass

Example usage for Java org.apache.hadoop.mapreduce.lib.output MultipleOutputs fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.hadoop.mapreduce.lib.output MultipleOutputs.

The text is from its open source code.

Constructor

MultipleOutputs(TaskInputOutputContext context)
Creates and initializes multiple outputs support, it should be instantiated in the Mapper/Reducer setup method.

Method

voidaddNamedOutput(Job job, String namedOutput, Class outputFormatClass, Class keyClass, Class valueClass)
Adds a named output for the job.
voidclose()
Closes all the opened outputs.
voidsetCountersEnabled(Job job, boolean enabled)
Enables or disables counters for the named outputs.
voidwrite(String namedOutput, K key, V value)
Write key and value to the namedOutput.
voidwrite(KEYOUT key, VALUEOUT value, String baseOutputPath)
Write key value to an output file name.