This project has retired. For details please refer to its Attic page.
Aggregate.PairValueComparator (Apache Crunch 0.3.0-incubating API)

org.apache.crunch.lib
Class Aggregate.PairValueComparator<K,V>

java.lang.Object
  extended by org.apache.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
equals, 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 The Apache Software Foundation. All Rights Reserved.