org.apache.hadoop.hive.ql.udf.generic
Class GenericUDAFCovarianceSample.GenericUDAFCovarianceSampleEvaluator

java.lang.Object
  extended by org.apache.hadoop.hive.ql.udf.generic.GenericUDAFEvaluator
      extended by org.apache.hadoop.hive.ql.udf.generic.GenericUDAFCovariance.GenericUDAFCovarianceEvaluator
          extended by org.apache.hadoop.hive.ql.udf.generic.GenericUDAFCovarianceSample.GenericUDAFCovarianceSampleEvaluator
Enclosing class:
GenericUDAFCovarianceSample

public static class GenericUDAFCovarianceSample.GenericUDAFCovarianceSampleEvaluator
extends GenericUDAFCovariance.GenericUDAFCovarianceEvaluator

Compute the sample covariance by extending GenericUDAFCovarianceEvaluator and overriding the terminate() method of the evaluator.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.udf.generic.GenericUDAFEvaluator
GenericUDAFEvaluator.AggregationBuffer, GenericUDAFEvaluator.Mode
 
Constructor Summary
GenericUDAFCovarianceSample.GenericUDAFCovarianceSampleEvaluator()
           
 
Method Summary
 Object terminate(GenericUDAFEvaluator.AggregationBuffer agg)
          Get final aggregation result.
 
Methods inherited from class org.apache.hadoop.hive.ql.udf.generic.GenericUDAFCovariance.GenericUDAFCovarianceEvaluator
getNewAggregationBuffer, getResult, init, iterate, merge, reset, setResult, terminatePartial
 
Methods inherited from class org.apache.hadoop.hive.ql.udf.generic.GenericUDAFEvaluator
aggregate, evaluate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericUDAFCovarianceSample.GenericUDAFCovarianceSampleEvaluator

public GenericUDAFCovarianceSample.GenericUDAFCovarianceSampleEvaluator()
Method Detail

terminate

public Object terminate(GenericUDAFEvaluator.AggregationBuffer agg)
                 throws HiveException
Description copied from class: GenericUDAFEvaluator
Get final aggregation result.

Overrides:
terminate in class GenericUDAFCovariance.GenericUDAFCovarianceEvaluator
Returns:
final aggregation result.
Throws:
HiveException


Copyright © 2011 The Apache Software Foundation