Package org.apache.avro.hadoop.io
Class AvroKeyComparator<T>
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.avro.hadoop.io.AvroKeyComparator<T>
- All Implemented Interfaces:
Comparator<AvroKey<T>>,Configurable,RawComparator<AvroKey<T>>
The
RawComparator used by jobs configured with
AvroJob.
Compares AvroKeys output from the map phase for sorting.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.hadoop.conf.Configured
getConfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
AvroKeyComparator
public AvroKeyComparator()
-
-
Method Details
-
setConf
- Specified by:
setConfin interfaceConfigurable- Overrides:
setConfin classConfigured
-
compare
public int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2) - Specified by:
comparein interfaceRawComparator<T>
-
compare
- Specified by:
comparein interfaceComparator<T>
-