MultiValueRef Function

Number of input and output field

Number of input field : One
Number of output field : One

This transformation function is used to process dynamic reference–based if–then–else statements. It is applicable when the reference data can fit into the memory of each worker. If the reference data is too large, it is recommended to use a reduce-side join assembly instead.

The parameters of this transformation function are:


For example, the content of the reference file data.txt:
    A|1;2;3;4
    B|5;6;7
    C|8;9;10


If the parameter Values:
Then the transformation is equivalent to the following statements:
    if  input in (1,2,3,4) then 
      return A 
    else if input in (5,6,7) then 
          return B 
    else if input in (8,9,10) then 
         return C 
     else 
        return null