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 Details

    • mapValue

      @Nullable T mapValue(@Nullable JiraBytesRef valueToConvert)
      Get value from JiraBytesRef
      Parameters:
      valueToConvert - input
      Returns:
      conversion out
    • mapSingleValueFromArray

      @Nullable default T mapSingleValueFromArray(@Nullable JiraBytesRef[] valueToConvert)
      Get single value from array converting it using mapValue(JiraBytesRef)
      Parameters:
      valueToConvert - array with values to convert
      Returns:
      if array is empty null otherwise result of mapValue(valueToConvert[0])