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
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
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2002-2009 Atlassian. All Rights Reserved.