com.atlassian.jira.issue.statistics
Class PriorityStatisticsMapper

java.lang.Object
  extended by com.atlassian.jira.issue.statistics.AbstractConstantStatisticsMapper
      extended by com.atlassian.jira.issue.statistics.PriorityStatisticsMapper
All Implemented Interfaces:
LuceneFieldSorter<org.ofbiz.core.entity.GenericValue>, StatisticsMapper<org.ofbiz.core.entity.GenericValue>
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.


Field Summary
 
Fields inherited from class com.atlassian.jira.issue.statistics.AbstractConstantStatisticsMapper
constantsManager
 
Constructor Summary
PriorityStatisticsMapper(ConstantsManager constantsManager)
           
 
Method Summary
protected  String getConstantType()
           
 String getDocumentConstant()
          Get the constant that this field is indexed with.
protected  String getIssueFieldConstant()
           
 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

PriorityStatisticsMapper

public PriorityStatisticsMapper(ConstantsManager constantsManager)
Method Detail

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<org.ofbiz.core.entity.GenericValue>
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<org.ofbiz.core.entity.GenericValue>
Overrides:
isFieldAlwaysPartOfAnIssue in class AbstractConstantStatisticsMapper
Returns:
true if this mapper will always be part of an issues data


Copyright © 2002-2010 Atlassian. All Rights Reserved.