Package org.apache.avro.mapred
Class AvroKeyComparator<T>
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.avro.mapred.AvroKeyComparator<T>
- All Implemented Interfaces:
Comparator<AvroWrapper<T>>
,Configurable
,RawComparator<AvroWrapper<T>>
The
RawComparator
used by jobs configured with AvroJob
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compare
(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2) int
compare
(AvroWrapper<T> x, AvroWrapper<T> y) void
setConf
(Configuration conf) Methods inherited from class org.apache.hadoop.conf.Configured
getConf
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
AvroKeyComparator
public AvroKeyComparator()
-
-
Method Details
-
setConf
- Specified by:
setConf
in interfaceConfigurable
- Overrides:
setConf
in classConfigured
-
compare
public int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2) - Specified by:
compare
in interfaceRawComparator<T>
-
compare
- Specified by:
compare
in interfaceComparator<T>
-