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

java.lang.Object
  extended by org.apache.hadoop.hive.ql.udf.UDAFPercentile.MyComparator
All Implemented Interfaces:
Comparator<Map.Entry<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable>>
Enclosing class:
UDAFPercentile

public static class UDAFPercentile.MyComparator
extends Object
implements Comparator<Map.Entry<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable>>

A comparator to sort the entries in order.


Constructor Summary
UDAFPercentile.MyComparator()
           
 
Method Summary
 int compare(Map.Entry<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable> o1, Map.Entry<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable> o2)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

UDAFPercentile.MyComparator

public UDAFPercentile.MyComparator()
Method Detail

compare

public int compare(Map.Entry<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable> o1,
                   Map.Entry<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable> o2)
Specified by:
compare in interface Comparator<Map.Entry<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable>>


Copyright © 2014 The Apache Software Foundation. All rights reserved.