org.terrier.structures.indexing.singlepass.hadoop
Class SplitEmittedTerm.SETRawComparatorTerm
java.lang.Object
org.terrier.structures.indexing.singlepass.hadoop.SplitEmittedTerm.SETRawComparatorTerm
- All Implemented Interfaces:
- java.io.Serializable, java.util.Comparator<SplitEmittedTerm>, org.apache.hadoop.io.RawComparator<SplitEmittedTerm>
- Enclosing class:
- SplitEmittedTerm
public static class SplitEmittedTerm.SETRawComparatorTerm
- extends java.lang.Object
- implements org.apache.hadoop.io.RawComparator<SplitEmittedTerm>, java.io.Serializable
Sorter by term only
- See Also:
- Serialized Form
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 |
SplitEmittedTerm.SETRawComparatorTerm
public SplitEmittedTerm.SETRawComparatorTerm()
compare
public int compare(byte[] bterm1,
int offset1,
int length1,
byte[] bterm2,
int offset2,
int length2)
- Compares raw Term key 1 to raw Term key 2. Note that only terms are considered.
- Specified by:
compare
in interface org.apache.hadoop.io.RawComparator<SplitEmittedTerm>
compare
public int compare(SplitEmittedTerm o1,
SplitEmittedTerm o2)
-
- Specified by:
compare
in interface java.util.Comparator<SplitEmittedTerm>
Terrier 3.5. Copyright © 2004-2011 University of Glasgow