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 .


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -