Class AbstractScoreComputedFieldComparatorSource.AbstractFieldComparator

java.lang.Object
org.apache.lucene.search.FieldComparator<Long>
org.apache.lucene.search.SimpleFieldComparator<Long>
com.atlassian.jira.search.lucene.sort.AbstractScoreComputedFieldComparatorSource.AbstractFieldComparator
All Implemented Interfaces:
org.apache.lucene.search.LeafFieldComparator
Enclosing class:
AbstractScoreComputedFieldComparatorSource

protected abstract class AbstractScoreComputedFieldComparatorSource.AbstractFieldComparator extends org.apache.lucene.search.SimpleFieldComparator<Long>
  • 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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final String
     
  • 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 abstract long
     
    protected long
    getOrdScore(int ord)
     
    protected void
    loadOrdScores(int ordsCount)
     
    protected abstract int
    lookupTerm(org.apache.lucene.util.BytesRef term)
     
    void
    setBottom(int bottom)
     
    void
     
    value(int slot)
     

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

    doSetNextReader, 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
  • Field Details

    • field

      protected final String field
  • Method Details

    • compare

      public int compare(int slot1, int slot2)
      Specified by:
      compare in class org.apache.lucene.search.FieldComparator<Long>
    • compareBottom

      public int compareBottom(int doc) throws IOException
      Throws:
      IOException
    • copy

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

      protected void loadOrdScores(int ordsCount) throws IOException
      Throws:
      IOException
    • getDocumentScore

      protected abstract long getDocumentScore(int doc) throws IOException
      Throws:
      IOException
    • lookupTerm

      protected abstract int lookupTerm(org.apache.lucene.util.BytesRef term) throws IOException
      Throws:
      IOException
    • setTopValue

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

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

      public void setBottom(int bottom)
    • getOrdScore

      protected long getOrdScore(int ord)
    • value

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