com.atlassian.jira.issue.search.parameters.lucene.sort
Class DocumentSortComparatorSource
java.lang.Object
com.atlassian.jira.issue.search.parameters.lucene.sort.DocumentSortComparatorSource
- All Implemented Interfaces:
- Serializable, org.apache.lucene.search.SortComparatorSource
- public class DocumentSortComparatorSource
- extends Object
- implements org.apache.lucene.search.SortComparatorSource
This Sort Comparator loops through each document, and calls SortComparator.compare(org.apache.lucene.index.IndexReader, int, int)
for each document it encounters.
Whilst slower than the MappedSortComparator, it allows for less memory overhead, and also allows for comparisons
to be made
- See Also:
- Serialized Form
Method Summary |
org.apache.lucene.search.ScoreDocComparator |
newComparator(org.apache.lucene.index.IndexReader indexReader,
String s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DocumentSortComparatorSource
public DocumentSortComparatorSource(SortComparator sortComparator)
newComparator
public org.apache.lucene.search.ScoreDocComparator newComparator(org.apache.lucene.index.IndexReader indexReader,
String s)
throws IOException
- Specified by:
newComparator
in interface org.apache.lucene.search.SortComparatorSource
- Throws:
IOException
Copyright © 2002-2006 Atlassian. All Rights Reserved.