com.atlassian.jira.issue.statistics
Class ReversePriorityStatisticsMapper

java.lang.Object
  extended by com.atlassian.jira.issue.statistics.AbstractConstantStatisticsMapper
      extended by com.atlassian.jira.issue.statistics.PriorityStatisticsMapper
          extended by com.atlassian.jira.issue.statistics.ReversePriorityStatisticsMapper
All Implemented Interfaces:
LuceneFieldSorter<IssueConstant>, StatisticsMapper<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
ReversePriorityStatisticsMapper(ConstantsManager constantsManager)
           
 
Method Summary
 Comparator<IssueConstant> getComparator()
          A comparator that can be used to order objects returned by LuceneFieldSorter.getValueFromLuceneField(String).
 
Methods inherited from class com.atlassian.jira.issue.statistics.PriorityStatisticsMapper
getConstantType, getDocumentConstant, getIssueFieldConstant, isFieldAlwaysPartOfAnIssue
 
Methods inherited from class com.atlassian.jira.issue.statistics.AbstractConstantStatisticsMapper
equals, getSearchUrlSuffix, getValueFromLuceneField, hashCode, isValidValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.issue.statistics.StatisticsMapper
getSearchUrlSuffix, isFieldAlwaysPartOfAnIssue, isValidValue
 
Methods inherited from interface com.atlassian.jira.issue.search.LuceneFieldSorter
equals, getDocumentConstant, getValueFromLuceneField, hashCode
 

Constructor Detail

ReversePriorityStatisticsMapper

public ReversePriorityStatisticsMapper(ConstantsManager constantsManager)
Method Detail

getComparator

public Comparator<IssueConstant> getComparator()
Description copied from interface: LuceneFieldSorter
A comparator that can be used to order objects returned by LuceneFieldSorter.getValueFromLuceneField(String).

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

Specified by:
getComparator in interface LuceneFieldSorter<IssueConstant>
Overrides:
getComparator in class AbstractConstantStatisticsMapper


Copyright © 2002-2012 Atlassian. All Rights Reserved.