hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ritesh Agrawal <ragra...@netflix.com>
Subject UDAF terminatePartial structure
Date Mon, 29 Jul 2013 22:19:49 GMT
Hi all,

I am writing my first UDAF. In my terminatePartial() function, I need to store different data
having different data types. Below is a list of items that I need to store
1. C1 : list of doubles
2. C2: list of doubles
3. C3: double
4. Show: list of strings


I am wondering can I use simple HashMap and store these different objects into it. Will it
automatically serialize or will I need to write my own serializiable method. Also is there
any example of a UDAF that shows how to use map type structure for storing partial results.


Thanks

Ritesh
Mime
View raw message