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 2008/12/04 23:56:11 UTC

[Pig Wiki] Trivial Update of "UDFManual" by OlgaN

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/UDFManual

------------------------------------------------------------------------------
- =!! User Defined Function Guide =
+ = User Defined Function Guide =
  
  Pig provides extensive support for user defined functions (UDFs) as a way to specify custom processing. Functions can be a part of almost every operator in Pig. This document describes how to use existing functions as well as how to write your own functions. 
  
@@ -14, +14 @@

  
  Eval is the most common type of function. It can be used in `FOREACH` statements as shown in this script:
  
- {{{
+ {{{#!java
  -- this is myscript.pig
  REGISTER myudfs.jar;
  A = LOAD 'student_data' AS (name: chararray, age: int, gpa: float);