Class PriorityStatisticsMapper
java.lang.Object
com.atlassian.jira.issue.statistics.AbstractConstantStatisticsMapper
com.atlassian.jira.issue.statistics.PriorityStatisticsMapper
- All Implemented Interfaces:
SearchRequestAppender.Factory<IssueConstant>,StatisticsMapper<IssueConstant>,FieldValueLoader<IssueConstant>
- Direct Known Subclasses:
ReversePriorityStatisticsMapper
public class PriorityStatisticsMapper
extends AbstractConstantStatisticsMapper
implements SearchRequestAppender.Factory<IssueConstant>
PriorityStatisticsMapper.
It is extremely important to minimise the references in this class, because Lucene keeps a global cache of these objects in a WeakHashMap. If this class has lots of outgoing references, then the retained size increases if this class is held onto, and also the risk of a circular reference back to the key of the WeakHashMap increases, which means it can't be garbage collected.
-
Field Summary
Fields inherited from class com.atlassian.jira.issue.statistics.AbstractConstantStatisticsMapper
constantsManager -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.atlassian.jira.issue.statistics.AbstractConstantStatisticsMapper
equals, getComparator, getSearchUrlSuffix, hashCode, isValidValue, loadValue
-
Constructor Details
-
PriorityStatisticsMapper
-
-
Method Details
-
getConstantType
- Specified by:
getConstantTypein classAbstractConstantStatisticsMapper
-
getIssueFieldConstant
- Specified by:
getIssueFieldConstantin classAbstractConstantStatisticsMapper
-
field
Description copied from interface:FieldValueLoaderGet the field name that this field is indexed with.- Specified by:
fieldin interfaceFieldValueLoader<IssueConstant>
-
isFieldAlwaysPartOfAnIssue
public boolean isFieldAlwaysPartOfAnIssue()Description copied from interface:StatisticsMapperCheck if the field is always part of an issues' data. This should only return false in the case of a custom field where the value does not have to be set for each issue.- Specified by:
isFieldAlwaysPartOfAnIssuein interfaceStatisticsMapper<IssueConstant>- Overrides:
isFieldAlwaysPartOfAnIssuein classAbstractConstantStatisticsMapper- Returns:
- true if this mapper will always be part of an issues data
-
getSearchRequestAppender
- Specified by:
getSearchRequestAppenderin interfaceSearchRequestAppender.Factory<IssueConstant>- Since:
- v6.0
-