Clover Coverage Report
Coverage timestamp: Fri May 9 2008 10:54:27 EST
0   28   0   -
0   8   -   0
0     -  
1    
 
  SortComparatorSource       Line # 16 0 0 - -1.0
 
No Tests
 
1    package org.apache.lucene.search;
2   
3    import org.apache.lucene.index.IndexReader;
4    import java.io.IOException;
5    import java.io.Serializable;
6   
7    /**
8    * Expert: returns a comparator for sorting ScoreDocs.
9    *
10    * <p>Created: Apr 21, 2004 3:49:28 PM
11    *
12    * @author Tim Jones
13    * @version $Id: SortComparatorSource.java 413201 2006-06-10 01:23:22Z gsingers $
14    * @since 1.4
15    */
 
16    public interface SortComparatorSource
17    extends Serializable {
18   
19    /**
20    * Creates a comparator for the field in the given index.
21    * @param reader Index to create comparator for.
22    * @param fieldname Fieldable to create comparator for.
23    * @return Comparator of ScoreDoc objects.
24    * @throws IOException If an error occurs reading the index.
25    */
26    ScoreDocComparator newComparator (IndexReader reader, String fieldname)
27    throws IOException;
28    }