org.apache.hadoop.hive.ql.udf.generic
Class GenericUDAFVarianceSample.GenericUDAFVarianceSampleEvaluator

java.lang.Object
  extended by org.apache.hadoop.hive.ql.udf.generic.GenericUDAFEvaluator
      extended by org.apache.hadoop.hive.ql.udf.generic.GenericUDAFVariance.GenericUDAFVarianceEvaluator
          extended by org.apache.hadoop.hive.ql.udf.generic.GenericUDAFVarianceSample.GenericUDAFVarianceSampleEvaluator
All Implemented Interfaces:
Closeable
Enclosing class:
GenericUDAFVarianceSample

public static class GenericUDAFVarianceSample.GenericUDAFVarianceSampleEvaluator
extends GenericUDAFVariance.GenericUDAFVarianceEvaluator

Compute the sample variance by extending GenericUDAFVarianceEvaluator 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
GenericUDAFVarianceSample.GenericUDAFVarianceSampleEvaluator()
           
 
Method Summary
 Object terminate(GenericUDAFEvaluator.AggregationBuffer agg)
          Get final aggregation result.
 
Methods inherited from class org.apache.hadoop.hive.ql.udf.generic.GenericUDAFVariance.GenericUDAFVarianceEvaluator
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

GenericUDAFVarianceSample.GenericUDAFVarianceSampleEvaluator

public GenericUDAFVarianceSample.GenericUDAFVarianceSampleEvaluator()
Method Detail

terminate

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

Overrides:
terminate in class GenericUDAFVariance.GenericUDAFVarianceEvaluator
Returns:
final aggregation result.
Throws:
HiveException


Copyright © 2014 The Apache Software Foundation. All rights reserved.