|
|
-
Re: Custom StoreFunc for pig 0.7Thejas Nair 2011-10-22, 22:43
See MultiStorage in piggybank -
http://pig.apache.org/docs/r0.9.1/api/org/apache/pig/piggybank/storage/MultiStorage.html On 10/21/11 4:56 PM, felix gao wrote: > Hi all, > > I am wondering if anyone have some examples on how to write a storefunc that > will take a look at some of the tuple's value and construct the output > directory based on that. > > For example if my tuple have the field ("2011-01-01", 123, xyz) I would like > like to construct an output directory like "/user/output/2011-01-01/123" and > the content will be > 2011-01-01<TAB> 123<TAB> xyz > > > Thanks, > > Felix > |