public class IdValueComparator
extends org.apache.hadoop.io.WritableComparator
| Constructor and Description |
|---|
IdValueComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(byte[] b1,
int s1,
int l1,
byte[] b2,
int s2,
int l2)
Comparator that is used by M/R framework to sort keys between different phases
of M/R job.
|
int |
compare(java.lang.Object v1,
java.lang.Object v2) |
int |
compareTo(org.ojai.Value val1,
org.ojai.Value val2)
Comparator of two value objects.
|
compare, compareBytes, define, get, get, getConf, getKeyClass, hashBytes, hashBytes, newKey, readDouble, readFloat, readInt, readLong, readUnsignedShort, readVInt, readVLong, setConfpublic 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.WritableComparator: - b1 : byte array with serialized key1.: - s1 : offset of key1 in b1.: - l1 : length of serialized key1.: - b2 : byte array with serialized key2.: - s2 : offset of key2 in b2.: - l2 : length of serialized key2.public int compareTo(org.ojai.Value val1,
org.ojai.Value val2)
val1 - : First instance of value.val2 - : Second instance of value.public int compare(java.lang.Object v1,
java.lang.Object v2)
compare in interface java.util.Comparatorcompare in class org.apache.hadoop.io.WritableComparator