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, setConf
public void configure(JobConf job)
JobConfigurable
JobConf
.configure
in interface JobConfigurable
job
- the configurationpublic int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)
compare
in interface org.apache.hadoop.io.RawComparator
compare
in class org.apache.hadoop.io.WritableComparator
Copyright © 2009 The Apache Software Foundation