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

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.UDAFAvg
All Implemented Interfaces:
UDAFEvaluator

public class UDAFAvg
extends NumericUDAF
implements UDAFEvaluator


Constructor Summary
UDAFAvg()
           
 
Method Summary
 void init()
          Initializer.
 boolean iterate(Double o)
           
 boolean merge(String o)
           
 Double terminate()
           
 String 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

UDAFAvg

public UDAFAvg()
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 String terminatePartial()

merge

public boolean merge(String o)

terminate

public Double terminate()


Copyright © 2009 The Apache Software Foundation