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
All Implemented Interfaces:
Closeable
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.AbstractAggregationBuffer, GenericUDAFEvaluator.AggregationBuffer, GenericUDAFEvaluator.AggregationType, 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, close, configure, evaluate, isEstimable
 
Methods inherited from class java.lang.Object
equals, 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 © 2014 The Apache Software Foundation. All rights reserved.