hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Seigel <ja...@tynt.com>
Subject Re: WritableComparable question
Date Mon, 19 Jul 2010 22:17:29 GMT
It has to reuse or the object creation would be killer!

Cheers
James

Sent from my mobile. Please excuse the typos.

On 2010-07-19, at 3:16 PM, Raymond Jennings III <raymondjiii@yahoo.com> wrote:

> I am trying to convert some MR programs that use Text only to instead use some 
> custom classes.  One of my classes has a Vector type and I found that the vector 
> grows with each call to my reducer such that the last call to the reducer has 
> every value within the Vector from all of the classes that use this vector 
> type.  Does MR reuse objects?
> 
> The only way I could fix this was to re-initialize my vectors in the "public 
> void readFields(DataInput in)" method.  This does not seem like I should have to 
> do this or do I ???
> 
> Thanks,
> Ray
> 
> 
> 
> 

Mime
View raw message