You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by Apache Wiki <wi...@apache.org> on 2009/01/23 10:15:53 UTC

[Pig Wiki] Update of "PiggyBank" by FlipKromer

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Pig Wiki" for change notification.

The following page has been changed by FlipKromer:
http://wiki.apache.org/pig/PiggyBank

The comment on the change is:
Example of registering and calling a piggybank function.

------------------------------------------------------------------------------
    * org.apache.pig.piggybank.grouping - for grouping functions
    * org.apache.pig.piggybank.storage - for load/store functions
  
- The exact package of the function can be seen in the javadocs or by navigating the source tree.
+ (The exact package of the function can be seen in the javadocs or by navigating the source tree.)
+ 
+ For example, to use the UPPER command:
+ 
+ {{{
+ REGISTER /public/share/pig/contrib/piggybank/java/piggybank.jar ;
+ TweetsInaug  = FILTER Tweets BY org.apache.pig.piggybank.evaluation.string.UPPER(text) MATCHES '.*(INAUG|OBAMA|BIDEN|CHENEY|BUSH).*' ;
+ STORE TweetsInaug INTO 'meta/inaug/tweets_inaug' ;
+ }}}
+ 
  
  == Contributing Functions ==