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 CorinneC:
http://wiki.apache.org/pig/EmbeddedPig

------------------------------------------------------------------------------
  [[Anchor(Example)]]
  === Example ===
  
- Lets assume that I need to count the number of occurrences of each word in a 
document. Lets also assume that you have EvalFunction `Tokenize` that parses a 
line of text and returns all the words for that line. The function is located 
in `/mylocation/tokenize.jar`.
+ Let's assume you need to count the number of occurrences of each word in a 
document. Let's also assume that you have EvalFunction `Tokenize` that parses a 
line of text and returns all the words for that line. The function is located 
in `/mylocation/tokenize.jar`.
  
- PigLatin script for this computation will look as follows:
+ The PigLatin script for the computation will look like this:
  
  {{{
  register /mylocation/tokenize.jar
@@ -29, +29 @@

  store D into 'myoutput';
  }}}
  
- The same can be accomplished with the following Java program
+ The same computation can be performed with this Java program:
  
  {{{
  

Reply via email to