Lookup
Prepare lookup from sorted input, which can be used after Wait command till ‘Lookup remove’.
Input must be sorted by the <key>
.
- Lookup [remove]
-
is to be used in EVS job structure definition file.
<f_in>
and<f_out>
are either input and output file or flow name. - evl lookup [remove]
-
is intended for standalone usage, i.e. to be invoked from command line.
EVD is EVL data definition file, for details see evl-evd(5).
Synopsis
Lookup <f_in> <lookup_name> (<evd>|-d <inline_evd>) -k <key> [-x|--text-input] Lookup remove <lookup_name> evl lookup <lookup_name> (<evd>|-d <inline_evd>) -k <key> [-x|--text-input] [-v|--verbose] evl lookup remove <lookup_name> evl lookup ( --help | --usage | --version )
Options
- -d, --data-definition=<inline_evd>
-
either this option or the file <evd> must be presented. Example: -d ’id int, user_id string(6) enc=iso-8859-1’
- -k, --key=<key>
-
key for looking up records
- -x, --text-input
-
suppose the input as text, not binary
Standard options:
- --help
-
print this help and exit
- --usage
-
print short usage information and exit
- -v, --verbose
-
print to stderr info/debug messages of the component
- --version
-
print version and exit
Examples
- To prepare lookup at the beginning of the job:
Read dimension.csv DIM evd/dim.evd --text-input Sort DIM DIM_SRT evd/dim.evd --key="id" Lookup DIM_SRT dim_lkp evd/dim.evd