com.atlassian.jira.issue.statistics
Class IssueTypeStatisticsMapper

java.lang.Object
  extended by com.atlassian.jira.issue.statistics.AbstractConstantStatisticsMapper
      extended by com.atlassian.jira.issue.statistics.IssueTypeStatisticsMapper
All Implemented Interfaces:
LuceneFieldSorter<IssueConstant>, SearchRequestAppender.Factory<IssueConstant>, StatisticsMapper<IssueConstant>

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


Field Summary
 
Fields inherited from class com.atlassian.jira.issue.statistics.AbstractConstantStatisticsMapper
constantsManager
 
Constructor Summary
IssueTypeStatisticsMapper(ConstantsManager constantsManager)
           
 
Method Summary
 Comparator<IssueConstant> getComparator()
          A comparator that can be used to order objects returned by LuceneFieldSorter.getValueFromLuceneField(String).
protected  String getConstantType()
           
 String getDocumentConstant()
          Get the constant that this field is indexed with.
protected  String getIssueFieldConstant()
           
 SearchRequestAppender<IssueConstant> getSearchRequestAppender()
           
 
Methods inherited from class com.atlassian.jira.issue.statistics.AbstractConstantStatisticsMapper
equals, getSearchUrlSuffix, getValueFromLuceneField, hashCode, isFieldAlwaysPartOfAnIssue, isValidValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueTypeStatisticsMapper

public IssueTypeStatisticsMapper(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<IssueConstant>
Specified by:
getDocumentConstant in class AbstractConstantStatisticsMapper
See Also:
com.atlassian.jira.issue.index.IssueDocument, CustomFieldSearcher

getComparator

public Comparator<IssueConstant> getComparator()
Description copied from interface: LuceneFieldSorter
A comparator that can be used to order objects returned by LuceneFieldSorter.getValueFromLuceneField(String).

The Comparator must be reentrant as it could be used by Lucene from multiple threads at once.

Specified by:
getComparator in interface LuceneFieldSorter<IssueConstant>
Overrides:
getComparator in class AbstractConstantStatisticsMapper

getSearchRequestAppender

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


Copyright © 2002-2014 Atlassian. All Rights Reserved.