public class

CachingStatisticsMapper

extends StatisticsMapperWrapper
java.lang.Object
   ↳ com.atlassian.jira.issue.statistics.util.StatisticsMapperWrapper
     ↳ com.atlassian.jira.issue.statistics.util.CachingStatisticsMapper

Class Overview

A statisticsMapper that caches the return value from getValueFromLuceneField(String) in an internal cache.

As the cache is not bounded, this object should not be stored for longer than a request

Summary

Public Constructors
CachingStatisticsMapper(StatisticsMapper statisticsMapper)
Public Methods
Object getValueFromLuceneField(String documentValue)
As lookups may be expensive, we cache the String->Object values in a cache
[Expand]
Inherited Methods
From class com.atlassian.jira.issue.statistics.util.StatisticsMapperWrapper
From class java.lang.Object
From interface com.atlassian.jira.issue.search.LuceneFieldSorter
From interface com.atlassian.jira.issue.statistics.StatisticsMapper

Public Constructors

public CachingStatisticsMapper (StatisticsMapper statisticsMapper)

Public Methods

public Object getValueFromLuceneField (String documentValue)

As lookups may be expensive, we cache the String->Object values in a cache

Parameters
documentValue The value of the field in the lucene index
Returns
  • The value that will be passed to the display