pig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Pig Wiki] Update of "PigFunctions" by UtkarshSrivastava
Date Wed, 28 Nov 2007 00:11:18 GMT
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 UtkarshSrivastava:
http://wiki.apache.org/pig/PigFunctions

------------------------------------------------------------------------------
  STORE uniqueIPs INTO '/iplist.txt' USING MyListStorage();
  }}}
  
- In the above example, !MyListStorage() serves as a load function as well as a store function;
!MyHostExtractor() and !MyIPLookup() are eval functions. `myFunctions.jar` is a jar file that
contains the classes for the user-defined functions.
+ In the above example, !MyListStorage() serves as a load function as well as a store function;
!MyHostExtractor() and MyIPLookup() are eval functions. `myFunctions.jar` is a jar file that
contains the classes for the user-defined functions.
  
  
  [[Anchor(How_to_write_functions)]]
@@ -41, +41 @@

  
  Click below to learn how to build your own:
     * EvalFunction
-    * Load/Store Function (These are the most difficult to write, and usually, the inbuilt
ones should be enough)
+    * [http://wiki.apache.org/pig/StorageFunction Load/Store Function] (These are the most
difficult to write, and usually, the inbuilt ones should be enough)
  
  [[Anchor(Ok,_I_have_written_my_function,_how_to_use_it?)]]
  === Ok, I have written my function, how to use it? ===
@@ -53, +53 @@

     * Then use your function, as you would use a builtin! Its that simple.
  
  Example:
+ 
+ The following example describes how to use your Eval function. Follow the same procedure
for your Load/Store function.
  
  1. Create your function `/src/myfunc/MyEvalFunc.java`
  

Mime
View raw message