Class PriorityStatisticsMapper

  extended by com.atlassian.jira.issue.statistics.AbstractConstantStatisticsMapper
      extended by com.atlassian.jira.issue.statistics.PriorityStatisticsMapper
All Implemented Interfaces:
LuceneFieldSorter<IssueConstant>, SearchRequestAppender.Factory<IssueConstant>, StatisticsMapper<IssueConstant>
Direct Known Subclasses:

public class PriorityStatisticsMapper
extends AbstractConstantStatisticsMapper
implements SearchRequestAppender.Factory<IssueConstant>


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
Constructor Summary
PriorityStatisticsMapper(ConstantsManager constantsManager)
Method Summary
protected  String getConstantType()
 String getDocumentConstant()
          Get the constant that this field is indexed with.
protected  String getIssueFieldConstant()
 SearchRequestAppender<IssueConstant> getSearchRequestAppender()
 boolean isFieldAlwaysPartOfAnIssue()
          Check if the field is always part of an issues data.
Methods inherited from class com.atlassian.jira.issue.statistics.AbstractConstantStatisticsMapper
equals, getComparator, getSearchUrlSuffix, getValueFromLuceneField, hashCode, isValidValue
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public PriorityStatisticsMapper(ConstantsManager constantsManager)
Method Detail


protected String getConstantType()
Specified by:
getConstantType in class AbstractConstantStatisticsMapper


protected String getIssueFieldConstant()
Specified by:
getIssueFieldConstant in class AbstractConstantStatisticsMapper


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:
com.atlassian.jira.issue.index.IssueDocument, CustomFieldSearcher


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>
isFieldAlwaysPartOfAnIssue in class AbstractConstantStatisticsMapper
true if this mapper will always be part of an issues data


public SearchRequestAppender<IssueConstant> getSearchRequestAppender()
Specified by:
getSearchRequestAppender in interface SearchRequestAppender.Factory<IssueConstant>

Copyright © 2002-2014 Atlassian. All Rights Reserved.