public class PostingIdComparator extends Object implements Comparator<Posting>, org.apache.hadoop.io.RawComparator<Posting>, Serializable
Constructor and Description |
---|
PostingIdComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(byte[] arg0,
int arg1,
int arg2,
byte[] arg3,
int arg4,
int arg5)
Decode Writable postings and compare by id
|
int |
compare(Posting o1,
Posting o2)
Compare Posting objects by id
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public int compare(Posting o1, Posting o2)
compare
in interface Comparator<Posting>
public int compare(byte[] arg0, int arg1, int arg2, byte[] arg3, int arg4, int arg5)
compare
in interface org.apache.hadoop.io.RawComparator<Posting>
Terrier 4.0. Copyright © 2004-2014 University of Glasgow