hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Kerzner <markkerz...@gmail.com>
Subject Re: do you need to call super in Mapper.Context.setup()?
Date Fri, 17 Sep 2010 15:41:21 GMT
In that case, you get an "unchecked type" warning

On Fri, Sep 17, 2010 at 10:39 AM, Owen O'Malley <omalley@apache.org> wrote:

>
> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message