com.atlassian.jira.issue.search.parameters.lucene.sort
Class StringSortComparator

java.lang.Object
  extended by org.apache.lucene.search.FieldComparatorSource
      extended by com.atlassian.jira.issue.search.parameters.lucene.sort.StringSortComparator
All Implemented Interfaces:
Serializable

public class StringSortComparator
extends org.apache.lucene.search.FieldComparatorSource

This supplies a Low Memory variant of Lucene's StringOrdValComparator. We have this modified class as we believe that most searches in very large JIRA installations will return a very small portion of the document index, either because they are over only one of many projects or they return only open issues, especially on dashboards and in GreenHopper and similar plugins as well as in general navigator searches.

See Also:
Serialized Form

Nested Class Summary
static class StringSortComparator.StringOrdValComparator
           
 
Constructor Summary
StringSortComparator()
           
 
Method Summary
 org.apache.lucene.search.FieldComparator newComparator(String fieldname, int numHits, int sortPos, boolean reversed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringSortComparator

public StringSortComparator()
Method Detail

newComparator

public org.apache.lucene.search.FieldComparator newComparator(String fieldname,
                                                              int numHits,
                                                              int sortPos,
                                                              boolean reversed)
                                                       throws IOException
Specified by:
newComparator in class org.apache.lucene.search.FieldComparatorSource
Throws:
IOException


Copyright © 2002-2014 Atlassian. All Rights Reserved.