org.terrier.structures.indexing.singlepass
Class RunsMerger.PostingComparator
java.lang.Object
org.terrier.structures.indexing.singlepass.RunsMerger.PostingComparator
- All Implemented Interfaces:
- Serializable, Comparator<RunIterator>
- Enclosing class:
- RunsMerger
public static class RunsMerger.PostingComparator
- extends Object
- implements Comparator<RunIterator>, Serializable
Implements a comparator for RunIterators (so it can be used by the queue).
It decides the next reader by the lexicographical order of the terms in the top elements of the readers.
- Author:
- Roi Blanco and Craig Macdonald
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RunsMerger.PostingComparator
public RunsMerger.PostingComparator()
compare
public int compare(RunIterator a,
RunIterator b)
- Specified by:
compare
in interface Comparator<RunIterator>
Terrier 3.6. Copyright © 2004-2011 University of Glasgow