org.apache.hadoop.hive.ql.udf
Class UDAFPercentile.PercentileLongEvaluator

java.lang.Object
  extended by 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.


Constructor Summary
UDAFPercentile.PercentileLongEvaluator()
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDAFPercentile.PercentileLongEvaluator

public UDAFPercentile.PercentileLongEvaluator()
Method Detail

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.