Class UserHistoryFieldComparatorSource.UserHistoryFieldComparator

java.lang.Object
org.apache.lucene.search.FieldComparator
org.apache.lucene.search.SimpleFieldComparator
com.atlassian.jira.issue.search.parameters.lucene.sort.UserHistoryFieldComparatorSource.UserHistoryFieldComparator
All Implemented Interfaces:
org.apache.lucene.search.LeafFieldComparator
Enclosing class:
UserHistoryFieldComparatorSource

public final class UserHistoryFieldComparatorSource.UserHistoryFieldComparator extends org.apache.lucene.search.SimpleFieldComparator
This compares user history timestamps. should be lightening quick
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.lucene.search.FieldComparator

    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.NumericComparator<T extends Number>, org.apache.lucene.search.FieldComparator.RelevanceComparator, org.apache.lucene.search.FieldComparator.TermOrdValComparator, org.apache.lucene.search.FieldComparator.TermValComparator
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    compare(int slot1, int slot2)
     
    int
    compareBottom(int doc)
     
    int
    compareTop(int doc)
     
    void
    copy(int slot, int doc)
     
    protected void
    doSetNextReader(org.apache.lucene.index.LeafReaderContext context)
     
    void
    setBottom(int bottom)
     
    void
     
    value(int slot)
     

    Methods inherited from class org.apache.lucene.search.SimpleFieldComparator

    getLeafComparator, setScorer

    Methods inherited from class org.apache.lucene.search.FieldComparator

    compareValues

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • 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
      Throws:
      IOException
    • copy

      public void copy(int slot, int doc) throws IOException
      Throws:
      IOException
    • doSetNextReader

      protected void doSetNextReader(org.apache.lucene.index.LeafReaderContext context) throws IOException
      Specified by:
      doSetNextReader in class org.apache.lucene.search.SimpleFieldComparator
      Throws:
      IOException
    • setTopValue

      public void setTopValue(Object value)
      Specified by:
      setTopValue in class org.apache.lucene.search.FieldComparator
    • compareTop

      public int compareTop(int doc) throws IOException
      Throws:
      IOException
    • setBottom

      public void setBottom(int bottom)
    • value

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