hadoop - Is there any function like setup in pig udf -
i want add mapdb file use mappers in pig udf. how can 1 time setup of mapdb object? have function called once when pig udf instantiated?
thanks.
in pig 1 has extend evalfunc udf called everyline of record .
the class evalfunc has been extended can instantiated defining in beginning of pig-script .
define ex_arg my.udfs.extract('true');
this causes instantiation of class .