public class AvroKeyComparator<T> extends Configured implements RawComparator<AvroWrapper<T>>
RawComparator used by jobs configured with AvroJob.| Constructor and Description | 
|---|
| AvroKeyComparator() | 
| Modifier and Type | Method and Description | 
|---|---|
| int | compare(AvroWrapper<T> x,
       AvroWrapper<T> y) | 
| int | compare(byte[] b1,
       int s1,
       int l1,
       byte[] b2,
       int s2,
       int l2) | 
| void | setConf(Configuration conf) | 
getConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic void setConf(Configuration conf)
setConf in interface ConfigurablesetConf in class Configuredpublic int compare(byte[] b1,
                   int s1,
                   int l1,
                   byte[] b2,
                   int s2,
                   int l2)
compare in interface RawComparator<AvroWrapper<T>>public int compare(AvroWrapper<T> x, AvroWrapper<T> y)
compare in interface Comparator<AvroWrapper<T>>Copyright © 2009–2020 The Apache Software Foundation. All rights reserved.