Stream Lookup
Description
Stream Lookup is a step in the Lookup Plugin for Process Studio Workflows. The Stream lookup step looks up data and adds it to information coming from other source steps in the workflow. The data coming from the Source steps is cached into memory and then a common key field is used to look up data from the lookup table. In the example below, database table input is the primary input. The workflow looks up data in a text-file based on a common key field.
Note: Consider using the Database Lookup step when the Lookup step originates from a table. In this case, it is faster to use the Database Lookup step and enable the option. Load all data from table that preloads the cache.
If there are multiple matching records in the Lookup step data having same keys, then by default the last matched record will be fetched by the step. Enable the Fetch First Matched Record checkbox to fetch the first matched record
Configurations
No. | Field Name | Description |
---|---|---|
1 | Step name | Specify the name of the step this name has to be unique in a single workflow |
2 | Lookup step | Specify the step name where the lookup data is coming from |
3 | The keys to lookup... | Specify the names of the fields that are used to look up values. Values are always searched using the "equal" comparison |
4 | Fields to retrieve | Specify the names of the fields to retrieve here, as well as the default value in case the value was not found or a new field name in case you didn't like the old one. |
6 | Preserve memory | Enabling this checkbox encodes rows of data to preserve memory while sorting. |
7 | Radio Button 1: Key and value are exactly one integer field | Preserves memory while executing a sort by. Note: Works only when "Preserve memory" is checked. Cannot be combined with the "Use sorted list" option below. |
8 | Radio Button 2: Use sorted list | Enable to store values using a sorted list; this provides better |
memory usage when working with data sets containing wide row. Note: Works only when "Preserve memory" is checked. Cannot be combined with the "Key and value are exactly one integer field" option. | ||
9 | Fetch First Matched Record | Enabling this checkbox will fetch the matched record from the Lookup Step. |
10 | Button: Get fields | Automatically fills in the names of all the available fields on the source side (A); you can then delete all the fields you don't want to use for lookup. |
11 | Button: Get lookup fields | Automatically inserts the names of all the available fields on the lookup side (B). You can then delete the fields you don't want to retrieve |