Interface BytesRefMapper<T>
- Type Parameters:
T
- - type that should be returned from mapValue(JiraBytesRef)
- All Known Implementing Classes:
CachingBytesRefMapper
public interface BytesRefMapper<T>
Maps
JiraBytesRef
to given type.- Since:
- v7.5
-
Method Summary
Modifier and TypeMethodDescriptiondefault T
mapSingleValueFromArray
(JiraBytesRef[] valueToConvert) Get single value from array converting it usingmapValue(JiraBytesRef)
mapValue
(JiraBytesRef valueToConvert) Get value fromJiraBytesRef
-
Method Details
-
mapValue
Get value fromJiraBytesRef
- Parameters:
valueToConvert
- input- Returns:
- conversion out
-
mapSingleValueFromArray
Get single value from array converting it usingmapValue(JiraBytesRef)
- Parameters:
valueToConvert
- array with values to convert- Returns:
- if array is empty null otherwise result of mapValue(valueToConvert[0])
-