hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rares Vernica <rvern...@gmail.com>
Subject Re: writable hash map
Date Mon, 13 Jul 2009 16:40:18 GMT
On Mon, Jul 13, 2009 at 8:57 AM, Rares Vernica<rvernica@gmail.com> wrote:
> I would like to pass a hash map trough map/reduce functions. Does
> anybody know a HashMap implementation that is Writable?

I found the answer. I can put the HashMap in a
org.apache.pig.data.Tuple (DefaultTuple to be more exact) and the
tuple writer method knows how to write a Map (including a HashMap).


View raw message