org.apache.avro.mapred
Class AvroKeyComparator<T>
java.lang.Object
   org.apache.hadoop.conf.Configured
org.apache.hadoop.conf.Configured
       org.apache.avro.mapred.AvroKeyComparator<T>
org.apache.avro.mapred.AvroKeyComparator<T>
- All Implemented Interfaces: 
- Comparator<AvroWrapper<T>>, Configurable, RawComparator<AvroWrapper<T>>
- public class AvroKeyComparator<T> 
- extends Configured- implements RawComparator<AvroWrapper<T>>
The RawComparator used by jobs configured with AvroJob.
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
AvroKeyComparator
public AvroKeyComparator()
setConf
public void setConf(Configuration conf)
- 
- Specified by:
- setConfin interface- Configurable
- Overrides:
- setConfin class- Configured
 
- 
 
compare
public int compare(byte[] b1,
                   int s1,
                   int l1,
                   byte[] b2,
                   int s2,
                   int l2)
- 
- Specified by:
- comparein interface- RawComparator<AvroWrapper<T>>
 
- 
 
compare
public int compare(AvroWrapper<T> x,
                   AvroWrapper<T> y)
- 
- Specified by:
- comparein interface- Comparator<AvroWrapper<T>>
 
- 
 
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.