public class CachingBytesRefMapper<T> extends Object implements BytesRefMapper<T>
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.| Constructor and Description |
|---|
CachingBytesRefMapper(java.util.function.Function<String,T> converter) |
CachingBytesRefMapper(LuceneFieldSorter<T> sorter) |
| Modifier and Type | Method and Description |
|---|---|
T |
mapValue(JiraBytesRef valueToConvert)
Get value from
JiraBytesRef |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmapSingleValueFromArraypublic CachingBytesRefMapper(@Nonnull java.util.function.Function<String,T> converter)
public CachingBytesRefMapper(@Nullable LuceneFieldSorter<T> sorter)
@Nullable public T mapValue(@Nullable JiraBytesRef valueToConvert)
BytesRefMapperJiraBytesRefmapValue in interface BytesRefMapper<T>valueToConvert - inputCopyright © 2002-2021 Atlassian. All Rights Reserved.