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()
UDAFEvaluator
init
in interface UDAFEvaluator
public boolean iterate(org.apache.hadoop.io.LongWritable o, Double percentile)
public UDAFPercentile.State terminatePartial()
public boolean merge(UDAFPercentile.State other)
public DoubleWritable terminate()
Copyright © 2021 The Apache Software Foundation. All rights reserved.