public class KeyFieldBasedComparator<K,V> extends org.apache.hadoop.io.WritableComparator implements JobConfigurable
| Constructor and Description |
|---|
KeyFieldBasedComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(byte[] b1,
int s1,
int l1,
byte[] b2,
int s2,
int l2) |
void |
configure(JobConf job)
Initializes a new instance from a
JobConf. |
compare, compare, compareBytes, define, get, get, getConf, getKeyClass, hashBytes, hashBytes, newKey, readDouble, readFloat, readInt, readLong, readUnsignedShort, readVInt, readVLong, setConfpublic void configure(JobConf job)
JobConfigurableJobConf.configure in interface JobConfigurablejob - the configurationpublic 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 © 2009 The Apache Software Foundation