org.apache.pig.builtin
Class IntSum

java.lang.Object
  extended by org.apache.pig.EvalFunc<T>
      extended by org.apache.pig.builtin.AlgebraicLongMathBase
          extended by org.apache.pig.builtin.LongSum
              extended by org.apache.pig.builtin.IntSum
All Implemented Interfaces:
Accumulator<Long>, Algebraic

public class IntSum
extends LongSum

This method should never be used directly, use SUM.


Nested Class Summary
static class AlgebraicMathBase.Initial
           
protected static class AlgebraicMathBase.KNOWN_OP
           
protected static interface AlgebraicMathBase.KnownOpProvider
           
 
Nested classes/interfaces inherited from class org.apache.pig.builtin.LongSum
LongSum.Final, LongSum.Intermediate
 
Nested classes/interfaces inherited from class org.apache.pig.EvalFunc
EvalFunc.SchemaType
 
Field Summary
protected  AlgebraicMathBase.KnownOpProvider opProvider
           
 
Fields inherited from class org.apache.pig.EvalFunc
log, pigLogger, reporter, returnType
 
Constructor Summary
IntSum()
           
 
Method Summary
 String getFinal()
          Get the final function.
 String getInitial()
          Get the initial function.
 String getIntermed()
          Get the intermediate function.
protected  void setOp(AlgebraicMathBase.KNOWN_OP op)
           
 
Methods inherited from class org.apache.pig.builtin.AlgebraicLongMathBase
accumulate, cleanup, doTupleWork, exec, getSeed, getValue, outputSchema
 
Methods inherited from class org.apache.pig.EvalFunc
finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, isAsynchronous, progress, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

opProvider

protected AlgebraicMathBase.KnownOpProvider opProvider
Constructor Detail

IntSum

public IntSum()
Method Detail

setOp

protected void setOp(AlgebraicMathBase.KNOWN_OP op)

getInitial

public String getInitial()
Description copied from interface: Algebraic
Get the initial function.

Specified by:
getInitial in interface Algebraic
Returns:
A function name of f_init. f_init should be an eval func. The return type of f_init.exec() has to be Tuple

getIntermed

public String getIntermed()
Description copied from interface: Algebraic
Get the intermediate function.

Specified by:
getIntermed in interface Algebraic
Returns:
A function name of f_intermed. f_intermed should be an eval func. The return type of f_intermed.exec() has to be Tuple

getFinal

public String getFinal()
Description copied from interface: Algebraic
Get the final function.

Specified by:
getFinal in interface Algebraic
Returns:
A function name of f_final. f_final should be an eval func parametrized by the same datum as the eval func implementing this interface.


Copyright © 2007-2012 The Apache Software Foundation