hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Owen O'Malley <omal...@apache.org>
Subject Re: do you need to call super in Mapper.Context.setup()?
Date Fri, 17 Sep 2010 15:39:03 GMT

On Sep 17, 2010, at 7:29 AM, David Rosenstrauch wrote:

> On 09/16/2010 11:38 PM, Mark Kerzner wrote:
>> Hi,
>>
>> any need for this,
>>
>> protected void setup(Mapper.Context context) throws IOException,
>> InterruptedException {
>>         super.setup(context); // TODO - does this need to be done?
>>         this.context = context;
>> }
>>
>> Thank you,
>> Mark
>
> "Use the source Luke".
>
> If you take a look through the source code, you'll see the answer is  
> no.

It is generally a good practice to call the super method, but it  
doesn't do anything currently and in practice that is unlikely to  
change.

-- Owen

Mime
View raw message