public class

ReversePriorityStatisticsMapper

extends PriorityStatisticsMapper
implements StatisticsMapper<T>
java.lang.Object
   ↳ com.atlassian.jira.issue.statistics.AbstractConstantStatisticsMapper
     ↳ com.atlassian.jira.issue.statistics.PriorityStatisticsMapper
       ↳ com.atlassian.jira.issue.statistics.ReversePriorityStatisticsMapper

Class Overview

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.

Summary

[Expand]
Inherited Fields
From class com.atlassian.jira.issue.statistics.AbstractConstantStatisticsMapper
Public Constructors
ReversePriorityStatisticsMapper(ConstantsManager constantsManager)
Public Methods
Comparator<IssueConstant> getComparator()
A comparator that can be used to order objects returned by getValueFromLuceneField(String).
[Expand]
Inherited Methods
From class com.atlassian.jira.issue.statistics.PriorityStatisticsMapper
From class com.atlassian.jira.issue.statistics.AbstractConstantStatisticsMapper
From class java.lang.Object
From interface com.atlassian.jira.issue.search.LuceneFieldSorter
From interface com.atlassian.jira.issue.search.SearchRequestAppender.Factory
From interface com.atlassian.jira.issue.statistics.StatisticsMapper

Public Constructors

public ReversePriorityStatisticsMapper (ConstantsManager constantsManager)

Public Methods

public Comparator<IssueConstant> getComparator ()

A comparator that can be used to order objects returned by getValueFromLuceneField(String).

The Comparator must be reentrant as it could be used by Lucene from multiple threads at once.