Class ReversePriorityStatisticsMapper
java.lang.Object
com.atlassian.jira.issue.statistics.AbstractConstantStatisticsMapper
com.atlassian.jira.issue.statistics.PriorityStatisticsMapper
com.atlassian.jira.issue.statistics.ReversePriorityStatisticsMapper
- All Implemented Interfaces:
SearchRequestAppender.Factory<IssueConstant>,StatisticsMapper<IssueConstant>,FieldValueLoader<IssueConstant>
public class ReversePriorityStatisticsMapper
extends PriorityStatisticsMapper
implements StatisticsMapper<IssueConstant>
This StatisticsMapper works exactly the same as PriorityStatisticsMapper, except that it returns a reverse-order comparator.
This class needs to minimise its outgoing references so as not to cause memory leaks.
See comments in PriorityStatisticsMapper.
-
Field Summary
Fields inherited from class com.atlassian.jira.issue.statistics.AbstractConstantStatisticsMapper
constantsManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA comparator by which the resulting values should be ordered when multiple values are present.Methods inherited from class com.atlassian.jira.issue.statistics.PriorityStatisticsMapper
field, getConstantType, getIssueFieldConstant, getSearchRequestAppender, isFieldAlwaysPartOfAnIssueMethods inherited from class com.atlassian.jira.issue.statistics.AbstractConstantStatisticsMapper
equals, getSearchUrlSuffix, hashCode, isValidValue, loadValueMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.search.FieldValueLoader
field, loadValueMethods inherited from interface com.atlassian.jira.issue.statistics.StatisticsMapper
getSearchUrlSuffix, isFieldAlwaysPartOfAnIssue, isValidValue
-
Constructor Details
-
ReversePriorityStatisticsMapper
-
-
Method Details
-
getComparator
Description copied from interface:FieldValueLoaderA comparator by which the resulting values should be ordered when multiple values are present.The Comparator must be reentrant as it could be used by Lucene from multiple threads at once.
- Specified by:
getComparatorin interfaceFieldValueLoader<IssueConstant>- Overrides:
getComparatorin classAbstractConstantStatisticsMapper
-