add_invoked_closure
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Description
Adds GraphProcessPoint or FlowGraphProcessPoint to be called by FuncProcessPoint, and returns FuncProcessPoint.
Prototype
1 2 | add_invoked_closure(graph_key, graph_pp) add_invoked_closure(graph_key, flow_graph_pp) |
Parameters
Parameter |
Data Type |
Description |
|---|---|---|
graph_key |
str |
Name of the called GraphProcessPoint, which must be unique for a graph. |
graph_pp |
Called GraphProcessPoint. For details, see dataflow.GraphProcessPoint. |
|
flow_graph_pp |
Called FlowGraphProcessPoint. For details, see dataflow.FlowGraphProcessPoint. |
Returns
None is returned in normal scenarios.
TypeError is returned when the parameter type is incorrect.
Examples
1 2 3 4 | import dataflow as df pp = df.FuncProcessPoint(...) pp1 = df.GraphProcessPoint(...) pp.add_invoked_closure(graph_key, pp1) |
Constraints
None
Parent topic: dataflow.FuncProcessPoint