Class CachingBytesRefMapper<T>
java.lang.Object
com.atlassian.jira.issue.statistics.util.CachingBytesRefMapper<T>
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionCachingBytesRefMapper
(LuceneFieldSorter<T> sorter) CachingBytesRefMapper
(Function<String, T> converter) -
Method Summary
Modifier and TypeMethodDescriptionmapValue
(JiraBytesRef valueToConvert) Get value fromJiraBytesRef
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.jira.issue.statistics.util.BytesRefMapper
mapSingleValueFromArray
-
Constructor Details
-
CachingBytesRefMapper
-
CachingBytesRefMapper
-
-
Method Details
-
mapValue
Description copied from interface:BytesRefMapper
Get value fromJiraBytesRef
- Specified by:
mapValue
in interfaceBytesRefMapper<T>
- Parameters:
valueToConvert
- input- Returns:
- conversion out
-