All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.approvaltests.hadoop.PairComparer Maven / Gradle / Ivy

There is a newer version: 9.5.0
Show newest version
package org.approvaltests.hadoop;

import java.util.Comparator;

import org.apache.hadoop.mrunit.types.Pair;

public class PairComparer implements Comparator>
{
  public static final PairComparer INSTANCE = new PairComparer();
  @SuppressWarnings("unchecked")
  public int compare(Pair o1, Pair o2)
  {
    return ((Comparable) o1.getFirst()).compareTo(o2.getFirst());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy