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 OlgaN: 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; !MyFilter() is a filter function; !MyHostExtractor() is an eval function; !MyIPLookup() is a group function. `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; !MyFilter() is a filter function; !MyHostExtractor() is an eval function; MyIPLookup() is a group function. `myFunctions.jar` is a jar file that contains the classes for the user-defined functions. [[Anchor(How_to_write_functions)]] === How to write functions === @@ -51, +51 @@ You can use your functions following the steps below: * Put all the compiled files used by your function together into a jar file - * Tell Pig about that jar by the `register <udfJar>` command before using the function. (If you are using PigLatin in embedded mode, call `PigServer.registerJar()`). + * Tell Pig about that jar by the `register <udfJar>` command before using the function. (If you are using PigLatin in embedded mode, call `PigServer.registerJar()`). * Then use your function, as you would use a builtin! Its that simple. Example: