Swift External Mapper
The external mapper, ext maps based on the output of a supplied Unix executable.
|exec||name of the executable (relative to the current directory, if an absolute path is not specified)|
|*||Other parameters are passed to the executable prefixed with a - symbol|
The output (stdout) of the executable should consist of two columns of data, separated by a space. The first column should be the path of the mapped variable, in Swift script syntax (for example  means the 2nd element of an array) or the symbol $ to represent the root of the mapped variable. The following table shows the symbols that should appear in the first column corresponding to the mapping of different types of swift constructs such as scalars, arrays and structs.
Example:With the following in mapper.sh,
then a mapping statement:
Advanced Example: The following mapper.sh is an advanced example of an external mapper that maps a two-dimensional array to a directory of files. The files in the said directory are identified by their names appended by a number between 000 and 099. The first index of the array maps to the first part of the filename while the second index of the array maps to the second part of the filename.
The mapper definition is as follows: