livvyguo / jaql

Automatically exported from code.google.com/p/jaql
1 stars 0 forks source link

Initialization for user defined functions #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Some user defined functions have non-trivial initialization phases
that in the ideal case, would not be repeated for each record of a 
mapper's input. Some work-arounds include the use of static variables 
(need to worry about multiple threads) and the registry infrastructure in 
jaql (as used for random number sampling). The first option may not be 
safe and the second requires jaql code to be modified which is not a good 
long option. 

While there is merit in exposing the registration infrastructure, a better 
option is to support initialization for user-defined functions.  

Original issue reported on code.google.com by vuk.erce...@gmail.com on 27 Jan 2009 at 1:39

GoogleCodeExporter commented 8 years ago
Issue 7 has been merged into this issue.

Original comment by vuk.erce...@gmail.com on 14 Mar 2009 at 7:28