com.atlassian.jira.issue.statistics
Class PriorityStatisticsMapper
java.lang.Object
com.atlassian.jira.issue.statistics.AbstractConstantStatisticsMapper
com.atlassian.jira.issue.statistics.PriorityStatisticsMapper
- All Implemented Interfaces:
- LuceneFieldSorter<IssueConstant>, StatisticsMapper<IssueConstant>
- Direct Known Subclasses:
- ReversePriorityStatisticsMapper
public class PriorityStatisticsMapper
- extends AbstractConstantStatisticsMapper
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.
PriorityStatisticsMapper
public PriorityStatisticsMapper(ConstantsManager constantsManager)
getConstantType
protected String getConstantType()
- Specified by:
getConstantType
in class AbstractConstantStatisticsMapper
getIssueFieldConstant
protected String getIssueFieldConstant()
- Specified by:
getIssueFieldConstant
in class AbstractConstantStatisticsMapper
getDocumentConstant
public String getDocumentConstant()
- Description copied from interface:
LuceneFieldSorter
- Get the constant that this field is indexed with.
- Specified by:
getDocumentConstant
in interface LuceneFieldSorter<IssueConstant>
- Specified by:
getDocumentConstant
in class AbstractConstantStatisticsMapper
- See Also:
IssueDocument
,
CustomFieldSearcher
isFieldAlwaysPartOfAnIssue
public boolean isFieldAlwaysPartOfAnIssue()
- Description copied from interface:
StatisticsMapper
- Check 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:
isFieldAlwaysPartOfAnIssue
in interface StatisticsMapper<IssueConstant>
- Overrides:
isFieldAlwaysPartOfAnIssue
in class AbstractConstantStatisticsMapper
- Returns:
- true if this mapper will always be part of an issues data
Copyright © 2002-2012 Atlassian. All Rights Reserved.