hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan LeCompte <lecom...@gmail.com>
Subject Re: Custom Writeables
Date Fri, 05 Sep 2008 17:18:55 GMT
Thanks! Quick question on that particular class: why are the methods  
synchronized? I didn't think that key/value objects needed to be  
thread safe?

Ryan



On Sep 5, 2008, at 1:09 PM, "Owen O'Malley" <omalley@apache.org> wrote:

> Yes, it is pretty easy to compose Writables. Just have the write and
> readFields call the nested types. Look at the way that
> JobStatus<http://svn.apache.org/repos/asf/hadoop/core/trunk/src/mapred/org/apache/hadoop/mapred/JobStatus.java

> >'s
> write method calls jobid.write.
>
> -- Owen

Mime
View raw message