This project has retired. For details please refer to its Attic page.
JoinUtils.AvroPairGroupingComparator (Apache Crunch 0.7.0 API)

org.apache.crunch.lib.join
Class JoinUtils.AvroPairGroupingComparator<T>

java.lang.Object
  extended by org.apache.hadoop.conf.Configured
      extended by org.apache.crunch.lib.join.JoinUtils.AvroPairGroupingComparator<T>
All Implemented Interfaces:
Comparator<org.apache.avro.mapred.AvroWrapper<T>>, org.apache.hadoop.conf.Configurable, org.apache.hadoop.io.RawComparator<org.apache.avro.mapred.AvroWrapper<T>>
Enclosing class:
JoinUtils

public static class JoinUtils.AvroPairGroupingComparator<T>
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.io.RawComparator<org.apache.avro.mapred.AvroWrapper<T>>


Constructor Summary
JoinUtils.AvroPairGroupingComparator()
           
 
Method Summary
 int compare(org.apache.avro.mapred.AvroWrapper<T> x, org.apache.avro.mapred.AvroWrapper<T> y)
           
 int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)
           
 void setConf(org.apache.hadoop.conf.Configuration conf)
           
 
Methods inherited from class org.apache.hadoop.conf.Configured
getConf
 
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

JoinUtils.AvroPairGroupingComparator

public JoinUtils.AvroPairGroupingComparator()
Method Detail

setConf

public void setConf(org.apache.hadoop.conf.Configuration conf)
Specified by:
setConf in interface org.apache.hadoop.conf.Configurable
Overrides:
setConf in class org.apache.hadoop.conf.Configured

compare

public int compare(org.apache.avro.mapred.AvroWrapper<T> x,
                   org.apache.avro.mapred.AvroWrapper<T> y)
Specified by:
compare in interface Comparator<org.apache.avro.mapred.AvroWrapper<T>>

compare

public int compare(byte[] b1,
                   int s1,
                   int l1,
                   byte[] b2,
                   int s2,
                   int l2)
Specified by:
compare in interface org.apache.hadoop.io.RawComparator<org.apache.avro.mapred.AvroWrapper<T>>


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.