|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.terrier.structures.indexing.singlepass.hadoop.IDComparator
public class IDComparator
Compares String objects. It is used to sort the Map ID's for the MapData files loaded during the reduce step. It makes sure that the Map ID's are in order of the documents that they processed.
Constructor Summary | |
---|---|
IDComparator(java.util.LinkedList<MapData> mapData)
constructor |
Method Summary | |
---|---|
int |
compare(java.lang.String id1,
java.lang.String id2)
|
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 |
---|
public IDComparator(java.util.LinkedList<MapData> mapData)
mapData
- Method Detail |
---|
public final int compare(java.lang.String id1, java.lang.String id2)
compare
in interface java.util.Comparator<java.lang.String>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |