com.cloudera.crunch.lib
Class Aggregate.PairValueComparator<K,V>

java.lang.Object
  extended by com.cloudera.crunch.lib.Aggregate.PairValueComparator<K,V>
All Implemented Interfaces:
Comparator<Pair<K,V>>
Enclosing class:
Aggregate

public static class Aggregate.PairValueComparator<K,V>
extends Object
implements Comparator<Pair<K,V>>


Constructor Summary
Aggregate.PairValueComparator(boolean ascending)
           
 
Method Summary
 int compare(Pair<K,V> left, Pair<K,V> right)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

Aggregate.PairValueComparator

public Aggregate.PairValueComparator(boolean ascending)
Method Detail

compare

public int compare(Pair<K,V> left,
                   Pair<K,V> right)
Specified by:
compare in interface Comparator<Pair<K,V>>


Copyright © 2012. All Rights Reserved.