Class CachingBytesRefMapper<T>

java.lang.Object
com.atlassian.jira.issue.statistics.util.CachingBytesRefMapper<T>
All Implemented Interfaces:
BytesRefMapper<T>

public class CachingBytesRefMapper<T> extends Object implements BytesRefMapper<T>
Converts JiraBytesRef values to give type caching the result. It assumes that the converter function has no side effects and returns always the same value for given input.
Since:
v7.5
  • Constructor Details

    • CachingBytesRefMapper

      public CachingBytesRefMapper(@Nonnull Function<String,T> converter)
    • CachingBytesRefMapper

      public CachingBytesRefMapper(@Nullable LuceneFieldSorter<T> sorter)
  • Method Details