Broadway has several Actors that allow working with MTables:
MTableLookup and MTableRandom Actors require an MTable name to perform the data lookup. In addition, a map of keys and their values can be passed at run-time, to limit the selection dataset. This is optional. If no keys are provided, the entire MTable dataset is returned.
The MTable name, keys and the keys' values can be set during the flow design-time as follows:
Start by manually defining the MTable name in the Actor's input:
Next, if needed, click Add Input to add the required keys as input arguments.
Start by defining the MTable name in the Actor's input, either manually or via the editor:
The MTable editor pop-up opens and displays a list of all deployed MTables and the list of keys per each MTable. Select a name from the list and mark the key(s) to be used as the lookup key(s). In addition, you can select the fields to be added to the Actor's output (on top of the results object).
Once selected, the keys are added to the Actor as new input arguments and the selected result fields are added to the Actor as output arguments.
The same capability of selecting a value from the list is also available when you need to set a default value for an MTable key (when it has an External or Link link type).
The purpose of an MTableLoad Actor is to dynamically create a new MTable or replace the data of an existing one in the Fabric memory. The MTable is created on one node and must be distributed to other nodes.
The Actor is using the data input argument to create the MTable object. Alternatively, a list of columns can be passed to the Actor, if, for example, only a sub-set of columns needs to be used from the given data set or if some columns don't have any data and should be created empty.
Note that dynamically created MTables are deleted from the Fabric's memory upon a restart.
Broadway has several Actors that allow working with MTables:
MTableLookup and MTableRandom Actors require an MTable name to perform the data lookup. In addition, a map of keys and their values can be passed at run-time, to limit the selection dataset. This is optional. If no keys are provided, the entire MTable dataset is returned.
The MTable name, keys and the keys' values can be set during the flow design-time as follows:
Start by manually defining the MTable name in the Actor's input:
Next, if needed, click Add Input to add the required keys as input arguments.
Start by defining the MTable name in the Actor's input, either manually or via the editor:
The MTable editor pop-up opens and displays a list of all deployed MTables and the list of keys per each MTable. Select a name from the list and mark the key(s) to be used as the lookup key(s). In addition, you can select the fields to be added to the Actor's output (on top of the results object).
Once selected, the keys are added to the Actor as new input arguments and the selected result fields are added to the Actor as output arguments.
The same capability of selecting a value from the list is also available when you need to set a default value for an MTable key (when it has an External or Link link type).
The purpose of an MTableLoad Actor is to dynamically create a new MTable or replace the data of an existing one in the Fabric memory. The MTable is created on one node and must be distributed to other nodes.
The Actor is using the data input argument to create the MTable object. Alternatively, a list of columns can be passed to the Actor, if, for example, only a sub-set of columns needs to be used from the given data set or if some columns don't have any data and should be created empty.
Note that dynamically created MTables are deleted from the Fabric's memory upon a restart.