com.atlassian.jira.issue.statistics
Class TimeTrackingStatisticsMapper
java.lang.Object
com.atlassian.jira.issue.statistics.LongFieldStatisticsMapper
com.atlassian.jira.issue.statistics.TimeTrackingStatisticsMapper
- All Implemented Interfaces:
- LuceneFieldSorter, StatisticsMapper
public class TimeTrackingStatisticsMapper
- extends LongFieldStatisticsMapper
A StatisticsMapper specifically for
OriginalEstimateSystemField,
TimeEstimateSystemField and
TimeSpentSystemField as their index values are stored in a specific format.
- Since:
- v4.0
TIME_ESTIMATE_ORIG
public static final StatisticsMapper TIME_ESTIMATE_ORIG
TIME_ESTIMATE_CURR
public static final StatisticsMapper TIME_ESTIMATE_CURR
TIME_SPENT
public static final StatisticsMapper TIME_SPENT
TimeTrackingStatisticsMapper
public TimeTrackingStatisticsMapper(String documentConstant)
getValueFromLuceneField
public Object getValueFromLuceneField(String documentValue)
- Description copied from interface:
LuceneFieldSorter
- Convert the lucene document field back to the object that you wish to use to display it.
eg. '1000' -> Version 1.
This does the reverse of what com.atlassian.jira.issue.index.IssueDocument does.
For custom fields, the return value will be passed to
CustomFieldSearcherModuleDescriptor.getStatHtml(com.atlassian.jira.issue.fields.CustomField, Object, String)
- Specified by:
getValueFromLuceneField in interface LuceneFieldSorter- Overrides:
getValueFromLuceneField in class LongFieldStatisticsMapper
- Parameters:
documentValue - The value of the field in the lucene index
- Returns:
- The value that will be passed to the display
Copyright © 2002-2014 Atlassian. All Rights Reserved.