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 ==
  

Reply via email to