Sorry, I don't think that's gonna work for tests, unless I misunderstood you.

Here's the old interface:

 public void map(K key, V val, OutputCollector<K, V> output, Reporter
reporter) throws IOException

And the new:

 public void map(K key, V value, Context context) throws IOException

The tests historically have called map(whatever,whatever2,
dummyCollector, null);

There is no obvious analog to a dummyCollector, precisely because
Context is a *non-static* class.

-- David

On Wed, Jul 22, 2009 at 1:49 PM, Sean Owen<[email protected]> wrote:
> Copy-n-paste the old or new code and continue to use it?
>
> On Wed, Jul 22, 2009 at 9:26 PM, David Hall<[email protected]> wrote:
>> The Hadoop gods have seen fit to deprecate OutputCollector and replace
>> it with a non-static inner class of Mapper called Context. This
>> complicates several tests, namely:
>

Reply via email to