com.atlassian.jira.issue.search.parameters.lucene.sort
Class DocumentSortComparatorSource.InternalFieldComparator

java.lang.Object
  extended by org.apache.lucene.search.FieldComparator
      extended by com.atlassian.jira.issue.search.parameters.lucene.sort.DocumentSortComparatorSource.InternalFieldComparator
Enclosing class:
DocumentSortComparatorSource

public final class DocumentSortComparatorSource.InternalFieldComparator
extends org.apache.lucene.search.FieldComparator

This compares whole issues using the Issue Comparator passed in.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lucene.search.FieldComparator
org.apache.lucene.search.FieldComparator.ByteComparator, org.apache.lucene.search.FieldComparator.DocComparator, org.apache.lucene.search.FieldComparator.DoubleComparator, org.apache.lucene.search.FieldComparator.FloatComparator, org.apache.lucene.search.FieldComparator.IntComparator, org.apache.lucene.search.FieldComparator.LongComparator, org.apache.lucene.search.FieldComparator.RelevanceComparator, org.apache.lucene.search.FieldComparator.ShortComparator, org.apache.lucene.search.FieldComparator.StringComparatorLocale, org.apache.lucene.search.FieldComparator.StringOrdValComparator, org.apache.lucene.search.FieldComparator.StringValComparator
 
Method Summary
 int compare(int slot1, int slot2)
           
 int compareBottom(int doc)
           
 void copy(int slot, int doc)
           
 void setBottom(int bottom)
           
 void setNextReader(org.apache.lucene.index.IndexReader reader, int docBase)
           
 Comparable<?> value(int slot)
           
 
Methods inherited from class org.apache.lucene.search.FieldComparator
binarySearch, binarySearch, setScorer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

compare

public int compare(int slot1,
                   int slot2)
Specified by:
compare in class org.apache.lucene.search.FieldComparator

compareBottom

public int compareBottom(int doc)
                  throws IOException
Specified by:
compareBottom in class org.apache.lucene.search.FieldComparator
Throws:
IOException

copy

public void copy(int slot,
                 int doc)
          throws IOException
Specified by:
copy in class org.apache.lucene.search.FieldComparator
Throws:
IOException

setNextReader

public void setNextReader(org.apache.lucene.index.IndexReader reader,
                          int docBase)
Specified by:
setNextReader in class org.apache.lucene.search.FieldComparator

setBottom

public void setBottom(int bottom)
Specified by:
setBottom in class org.apache.lucene.search.FieldComparator

value

public Comparable<?> value(int slot)
Specified by:
value in class org.apache.lucene.search.FieldComparator


Copyright © 2002-2012 Atlassian. All Rights Reserved.