You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by ro...@apache.org on 2013/03/01 13:41:32 UTC

svn commit: r1451574 - in /pig/trunk: CHANGES.txt src/docs/src/documentation/content/xdocs/udf.xml

Author: rohini
Date: Fri Mar  1 12:41:31 2013
New Revision: 1451574

URL: http://svn.apache.org/r1451574
Log:
PIG-3216: Groovy UDFs documentation has minor typos (herberts via rohini)

Modified:
    pig/trunk/CHANGES.txt
    pig/trunk/src/docs/src/documentation/content/xdocs/udf.xml

Modified: pig/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/pig/trunk/CHANGES.txt?rev=1451574&r1=1451573&r2=1451574&view=diff
==============================================================================
--- pig/trunk/CHANGES.txt (original)
+++ pig/trunk/CHANGES.txt Fri Mar  1 12:41:31 2013
@@ -209,6 +209,8 @@ INCOMPATIBLE CHANGES
 
 IMPROVEMENTS
 
+PIG-3216: Groovy UDFs documentation has minor typos (herberts via rohini)
+
 PIG-3202: CUBE operator not documented in user docs (prasanth_j via billgraham)
 
 OPTIMIZATIONS

Modified: pig/trunk/src/docs/src/documentation/content/xdocs/udf.xml
URL: http://svn.apache.org/viewvc/pig/trunk/src/docs/src/documentation/content/xdocs/udf.xml?rev=1451574&r1=1451573&r2=1451574&view=diff
==============================================================================
--- pig/trunk/src/docs/src/documentation/content/xdocs/udf.xml (original)
+++ pig/trunk/src/docs/src/documentation/content/xdocs/udf.xml Fri Mar  1 12:41:31 2013
@@ -1866,7 +1866,7 @@ class GroovyUDFs {",
 <title>Advanced Topics</title>
 <p>You can also write Algebraic and Accumulator UDFs using Groovy. Both types of UDFs are declared using annotations, a single Groovy file can therefore enclose several Algebraic/Accumulator UDFs, all mixed with regular UDFs.</p>
 
-<p>Algebraic UDFs are declared using three annotations, @AlgebraicInitial, @AlgebraicIntermed and @AlgebraicFinali which are to annotate methods that correspond to the initial, intermed and final steps of an Algebraic UDF. Those annotations have a single parameter which is the name of the Algebraic UDF that will be available in Pig. The methods annotated with @AlgebraicInitial and @AlgebraicIntermed accept a Tuple as parameter and return a Tuple. The return type of the method annotated with @AlgebraicFinal will determine the return type of the Algebraic UDF. Here is an example of an Algebraic UDF named 'sum' defined in Groovy:</p>
+<p>Algebraic UDFs are declared using three annotations, @AlgebraicInitial, @AlgebraicIntermed and @AlgebraicFinal which are to annotate methods that correspond to the initial, intermed and final steps of an Algebraic UDF. Those annotations have a single parameter which is the name of the Algebraic UDF that will be available in Pig. The methods annotated with @AlgebraicInitial and @AlgebraicIntermed accept a Tuple as parameter and return a Tuple. The return type of the method annotated with @AlgebraicFinal will determine the return type of the Algebraic UDF. Here is an example of an Algebraic UDF named 'sum' defined in Groovy:</p>
  <source>
 import org.apache.pig.scripting.groovy.AlgebraicInitial;
 import org.apache.pig.scripting.groovy.AlgebraicIntermed;
@@ -1904,7 +1904,7 @@ class GroovyUDFs {
 
 <p>Since Accumulator UDFs maintain state, the methods annotated with the @AccumulatorXXX annotations cannot be static. A single instance of the enclosing class will be used when invoking them, thus enabling them to access a single state.</p>
 
-<p>The following example defines an Accumulator UDF named 'sum':</p>
+<p>The following example defines an Accumulator UDF named 'sumacc':</p>
  <source>
 import org.apache.pig.builtin.OutputSchema;
 import org.apache.pig.scripting.groovy.AccumulatorAccumulate;