public static class UDAFPercentile.PercentileLongEvaluator extends Object implements UDAFEvaluator
| Constructor and Description |
|---|
PercentileLongEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
void |
init()
Initializer.
|
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.
|
boolean |
merge(UDAFPercentile.State other) |
DoubleWritable |
terminate() |
UDAFPercentile.State |
terminatePartial() |
public void init()
UDAFEvaluatorinit in interface UDAFEvaluatorpublic boolean iterate(org.apache.hadoop.io.LongWritable o,
Double percentile)
public UDAFPercentile.State terminatePartial()
public boolean merge(UDAFPercentile.State other)
public DoubleWritable terminate()
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.