public static class UDAFPercentile.PercentileLongEvaluator extends java.lang.Object implements UDAFEvaluator
Constructor and Description |
---|
PercentileLongEvaluator() |
Modifier and Type | Method and Description |
---|---|
void |
init()
Initializer.
|
boolean |
iterate(LongWritable o,
java.lang.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(LongWritable o, java.lang.Double percentile)
public UDAFPercentile.State terminatePartial()
public boolean merge(UDAFPercentile.State other)
public DoubleWritable terminate()
Copyright © 2012 The Apache Software Foundation