org.apache.hadoop.hive.ql.udf
Class UDAFPercentile.MyComparator
java.lang.Object
org.apache.hadoop.hive.ql.udf.UDAFPercentile.MyComparator
- All Implemented Interfaces:
- Comparator<Map.Entry<LongWritable,LongWritable>>
- Enclosing class:
- UDAFPercentile
public static class UDAFPercentile.MyComparator
- extends Object
- implements Comparator<Map.Entry<LongWritable,LongWritable>>
A comparator to sort the entries in order.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UDAFPercentile.MyComparator
public UDAFPercentile.MyComparator()
compare
public int compare(Map.Entry<LongWritable,LongWritable> o1,
Map.Entry<LongWritable,LongWritable> o2)
- Specified by:
compare
in interface Comparator<Map.Entry<LongWritable,LongWritable>>
Copyright © 2012 The Apache Software Foundation