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 TypeMethodDescriptionintcompare(int slot1, int slot2) intcompareBottom(int doc) intcompareTop(int doc) voidcopy(int slot, int doc) protected voiddoSetNextReader(org.apache.lucene.index.LeafReaderContext context) voidsetBottom(int bottom) voidsetTopValue(Object value) Comparable<?> value(int slot) Methods inherited from class org.apache.lucene.search.SimpleFieldComparator
getLeafComparator, setScorerMethods inherited from class org.apache.lucene.search.FieldComparator
compareValues
-
Method Details
-
compare
public int compare(int slot1, int slot2) - Specified by:
comparein classorg.apache.lucene.search.FieldComparator
-
compareBottom
- Throws:
IOException
-
copy
- Throws:
IOException
-
doSetNextReader
protected void doSetNextReader(org.apache.lucene.index.LeafReaderContext context) throws IOException - Specified by:
doSetNextReaderin classorg.apache.lucene.search.SimpleFieldComparator- Throws:
IOException
-
setTopValue
- Specified by:
setTopValuein classorg.apache.lucene.search.FieldComparator
-
compareTop
- Throws:
IOException
-
setBottom
public void setBottom(int bottom) -
value
- Specified by:
valuein classorg.apache.lucene.search.FieldComparator
-