Besides the usage pattern the key differences are:

Different MultipleOutputs outputs can have different outputformats and
key/value classes. With MultipleOutputFormat you can't.

(and if I'm not mistaken) If using MultipleOutputFormat in a map you
can't have a reduce phase. With MultipleOutputs you can.

A

On Thu, Aug 28, 2008 at 3:36 AM, Shirley Cohen <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I would like the reducer to output to different files based upon the value
> of the key. I understand that both MultipleOutputs and MultipleOutputFormat
> can do this. Is that correct? However, I don't understand the differences
> between these two classes. Can someone explain the differences and provide
> an example to illustrate these differences? I found a snippet of code on how
> to use MultipleOutputs in the documentation, but could not find an example
> for using MultipleOutputFormat.
>
> Thanks in advance,
>
> Shirley
>
>
>

Reply via email to