org.apache.hadoop.hive.ql.udf
Class UDAFSum

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.UDAF
      extended by org.apache.hadoop.hive.ql.exec.NumericUDAF
          extended by org.apache.hadoop.hive.ql.udf.UDAFSum
All Implemented Interfaces:
UDAFEvaluator

public class UDAFSum
extends NumericUDAF
implements UDAFEvaluator


Constructor Summary
UDAFSum()
           
 
Method Summary
 void init()
          Initializer.
 boolean iterate(Double o)
           
 boolean merge(Double o)
           
 Double terminate()
           
 Double terminatePartial()
           
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.UDAF
getResolver, setResolver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDAFSum

public UDAFSum()
Method Detail

init

public void init()
Description copied from interface: UDAFEvaluator
Initializer. Initializes the state for the evaluator.

Specified by:
init in interface UDAFEvaluator

iterate

public boolean iterate(Double o)

terminatePartial

public Double terminatePartial()

merge

public boolean merge(Double o)

terminate

public Double terminate()


Copyright © 2009 The Apache Software Foundation