|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.io.WritableComparator
org.apache.mahout.utils.nlp.collocations.llr.GramKeyGroupComparator
public class GramKeyGroupComparator
Group GramKeys based on their Gram, ignoring the secondary sort key, so that all keys with the same Gram are sent to the same call of the reduce method, sorted in natural order (for GramKeys).
Constructor Summary | |
---|---|
protected |
GramKeyGroupComparator()
|
Method Summary | |
---|---|
int |
compare(org.apache.hadoop.io.WritableComparable a,
org.apache.hadoop.io.WritableComparable b)
|
Methods inherited from class org.apache.hadoop.io.WritableComparator |
---|
compare, compare, compareBytes, define, get, getKeyClass, hashBytes, newKey, readDouble, readFloat, readInt, readLong, readUnsignedShort, readVInt, readVLong |
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 |
Constructor Detail |
---|
protected GramKeyGroupComparator()
Method Detail |
---|
public int compare(org.apache.hadoop.io.WritableComparable a, org.apache.hadoop.io.WritableComparable b)
compare
in class org.apache.hadoop.io.WritableComparator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |