public class

PriorityStatisticsMapper

extends AbstractConstantStatisticsMapper
implements SearchRequestAppender.Factory<T>
java.lang.Object
   ↳ com.atlassian.jira.issue.statistics.AbstractConstantStatisticsMapper
     ↳ com.atlassian.jira.issue.statistics.PriorityStatisticsMapper
Known Direct Subclasses

Class Overview

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.

Summary

[Expand]
Inherited Fields
From class com.atlassian.jira.issue.statistics.AbstractConstantStatisticsMapper
Public Constructors
PriorityStatisticsMapper(ConstantsManager constantsManager)
Public Methods
String getDocumentConstant()
Get the constant that this field is indexed with.
SearchRequestAppender<IssueConstant> getSearchRequestAppender()
boolean isFieldAlwaysPartOfAnIssue()
Check if the field is always part of an issues data.
Protected Methods
String getConstantType()
String getIssueFieldConstant()
[Expand]
Inherited Methods
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 PriorityStatisticsMapper (ConstantsManager constantsManager)

Public Methods

public String getDocumentConstant ()

Get the constant that this field is indexed with.

public SearchRequestAppender<IssueConstant> getSearchRequestAppender ()

public boolean isFieldAlwaysPartOfAnIssue ()

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.

Returns
  • true if this mapper will always be part of an issues data

Protected Methods

protected String getConstantType ()

protected String getIssueFieldConstant ()