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 <[email protected]> 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
> 
> 
> 
> 

Reply via email to