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.
constantsManager
Constructor and Description |
---|
PriorityStatisticsMapper(ConstantsManager constantsManager) |
Modifier and Type | Method and Description |
---|---|
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.
|
equals, getComparator, getSearchUrlSuffix, getValueFromLuceneField, hashCode, isValidValue
public PriorityStatisticsMapper(ConstantsManager constantsManager)
protected String getConstantType()
getConstantType
in class AbstractConstantStatisticsMapper
protected String getIssueFieldConstant()
getIssueFieldConstant
in class AbstractConstantStatisticsMapper
public String getDocumentConstant()
LuceneFieldSorter
getDocumentConstant
in interface LuceneFieldSorter<IssueConstant>
getDocumentConstant
in class AbstractConstantStatisticsMapper
com.atlassian.jira.issue.index.IssueDocument
,
CustomFieldSearcher
public boolean isFieldAlwaysPartOfAnIssue()
StatisticsMapper
isFieldAlwaysPartOfAnIssue
in interface StatisticsMapper<IssueConstant>
isFieldAlwaysPartOfAnIssue
in class AbstractConstantStatisticsMapper
public SearchRequestAppender<IssueConstant> getSearchRequestAppender()
getSearchRequestAppender
in interface SearchRequestAppender.Factory<IssueConstant>
Copyright © 2002-2015 Atlassian. All Rights Reserved.