STORE X into 'bla' using mystorefunc('abc', 'xyz');
abc and xyz will be passed to the constructor of your store function
as strings. You can pass the name of your configuration file in this
manner.
Alan.
On Nov 26, 2009, at 9:27 PM, V Satish Kumar wrote:
I have actually written my own UDF to store data. I need to pass a
config file to this UDF. Currently I have hardcoded the config file
name inside the UDF.
Now I want to use the same UDF for various config. Therefore, I
wanted to pass a filename as an argument.
Satish
Rekha Joshi wrote:
By API, PigStorage delimiter needs to be single byte character.For
your requirement you can possibly extend Utf8StorageConverter/
PigStorage.
Or is it possible to parse the file by the byte representation of
the your string and using with \u? Crazy thought this.., you will
have to alter functionality.
On 11/27/09 10:31 AM, "V Satish Kumar" <[email protected]>
wrote:
Is there a way to pass a string as an argument to the STORE function?
For example: STORE A in 'somefile' USING PigStorage("<STRING>")
Thanks,
Satish