public abstract static class ShuffleKey.AbstractGroupComparator
extends org.apache.hadoop.io.WritableComparator
ShuffleKey.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractGroupComparator(Class<? extends ShuffleKey> keyClass)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(byte[] b1,
int s1,
int l1,
byte[] b2,
int s2,
int l2) |
int |
compare(org.apache.hadoop.io.WritableComparable a,
org.apache.hadoop.io.WritableComparable b) |
compare, compareBytes, define, get, get, getConf, getKeyClass, hashBytes, hashBytes, newKey, readDouble, readFloat, readInt, readLong, readUnsignedShort, readVInt, readVLong, setConfclone, 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, thenComparingLongprotected AbstractGroupComparator(Class<? extends ShuffleKey> keyClass)
keyClass - the key classpublic int compare(org.apache.hadoop.io.WritableComparable a,
org.apache.hadoop.io.WritableComparable b)
compare in class org.apache.hadoop.io.WritableComparatorpublic int compare(byte[] b1,
int s1,
int l1,
byte[] b2,
int s2,
int l2)
compare in interface org.apache.hadoop.io.RawComparatorcompare in class org.apache.hadoop.io.WritableComparatorCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.