You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Johannes Zillmann <jz...@101tec.com> on 2008/01/31 07:50:34 UTC
use alias in StoreFunc
Hi there,
i like to implement a custom StoreFunc which is able to store discrete
particularized tuples or values of tuples.
So imagine this schema A=(f1, f2, f3 ) with this example allocation (2,
1, 4).
Now if i want to store f3 of A, i think i can do something like:
STORE A into 'output' USING myStore(2);
and in the StoreFunc i would then call tuple.getField(2) to retrieve and
store the field.
But is there a possibility to access the field by alias in the StoreFunc
? Maybe resove a alias into the index ?
cheers
Johannes
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
101tec GmbH
Halle (Saale), Saxony-Anhalt, Germany
http://www.101tec.com