com.atlassian.jira.issue.statistics
Class TimeTrackingStatisticsMapper

java.lang.Object
  extended by com.atlassian.jira.issue.statistics.LongFieldStatisticsMapper
      extended by 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

Field Summary
static StatisticsMapper TIME_ESTIMATE_CURR
           
static StatisticsMapper TIME_ESTIMATE_ORIG
           
static StatisticsMapper TIME_SPENT
           
 
Fields inherited from class com.atlassian.jira.issue.statistics.LongFieldStatisticsMapper
PROGRESS, WORK_RATIO
 
Constructor Summary
TimeTrackingStatisticsMapper(java.lang.String documentConstant)
           
 
Method Summary
 java.lang.Object getValueFromLuceneField(java.lang.String documentValue)
          Convert the lucene document field back to the object that you wish to use to display it.
 
Methods inherited from class com.atlassian.jira.issue.statistics.LongFieldStatisticsMapper
equals, getComparator, getDocumentConstant, getSearchUrlSuffix, hashCode, isFieldAlwaysPartOfAnIssue, isValidValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

TimeTrackingStatisticsMapper

public TimeTrackingStatisticsMapper(java.lang.String documentConstant)
Method Detail

getValueFromLuceneField

public java.lang.Object getValueFromLuceneField(java.lang.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 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-2010 Atlassian. All Rights Reserved.