-RE: Question about myImageStorageFunc and PigStore
Santhosh Srinivasan 2009-04-21, 18:28
You need to write your own UDF to read and write image files to the file
Have a look at the following built-in load and store functions supported
PigStorage handles read/write of UTF-8 text data.
BinStorage handles read/write of binary data. The binary data format is
internal to Pig.
From: Sameer Tilak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 21, 2009 10:53 AM
To: [EMAIL PROTECTED]
Subject: Question about myImageStorageFunc and PigStore
We're working on an image analysis project using Pig. I wrote my UDF:
myImageFilter. However, can someone please point me to info about UDF:
myImageStorageFunc. My images will be in a directory in HDFS. So should
function need to inmplement reading from/ writing to image files to
there any existing functionality within Pig to do the same or do I need
write my own? If second, is there any example code to do this?
imagein = load '/myimages' using myImageStorageFunc();
imageop = foreach imagein generate myImageFilter(*);
store imageop into '/mythumbnails' using myImageStorageFunc();
I've similar question about PigStore function.