org.apache.hadoop.hive.ql.udf
Class UDAFPercentile.PercentileLongEvaluator
java.lang.Object
org.apache.hadoop.hive.ql.udf.UDAFPercentile.PercentileLongEvaluator
- All Implemented Interfaces:
- UDAFEvaluator
- Enclosing class:
- UDAFPercentile
public static class UDAFPercentile.PercentileLongEvaluator
- extends Object
- implements UDAFEvaluator
The evaluator for percentile computation based on long.
UDAFPercentile.PercentileLongEvaluator
public UDAFPercentile.PercentileLongEvaluator()
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(org.apache.hadoop.io.LongWritable o,
Double percentile)
- Note that percentile can be null in a global aggregation with
0 input rows: "select percentile(col, 0.5) from t where false"
In that case, iterate(null, null) will be called once.
terminatePartial
public UDAFPercentile.State terminatePartial()
merge
public boolean merge(UDAFPercentile.State other)
terminate
public DoubleWritable terminate()
Copyright © 2014 The Apache Software Foundation. All rights reserved.