Operator-related Operations
An operator is an algorithm processing module in a graph. Each operator performs a specific data processing task. This chapter mainly introduces various operations related to operators.
How to Add an Operator
Perform the following steps to add an operator from the operator library to the canvas:
-
Search for an operator in the operator library or find an operator based on the operator category.
-
Press and hold the left mouse button to drag the operator to the canvas.
When an operator exists in the canvas, perform the following steps to add an operator:
-
Right-click the output port of the operator.
-
Move the mouse pointer to the connectable option in the shortcut menu.
-
Click the operator you want to use in the expanded list.
How to Connect Operators
Only when the data type of any output port of the current operator is the same as that of any input port of the next operator, can the operator be connected. |
Perform the following steps to connect operators:
-
Left-click the output port of the previous operator.
-
Move the mouse pointer to the input port of the next terminal.
-
Left-click to complete the connection.
|
How to Move Operators
Perform the following steps to adjust the position of operators in the canvas:
-
Move the mouse pointer to the operator name, and the pointer changes to
.
-
Press and hold the left mouse button and drag in any direction.
How to Set Operator Parameters
Double-click an operator in the canvas to open the parameter setting panel and set the operator parameters in the parameter panel.
How to Activate an Operator
How to Debug an Operator
Debugging an operator refers to the process of modifying the operator parameters to make the operator output meet the requirements.
-
Connect the operator and make sure that the operator has the corresponding input.
-
Open the operator parameter panel and set the relevant parameters.
-
Activate the operator and view the output results.
-
Repeat steps 2-3 until the output results meet the requirements.
How to Preload an Operator
Preloading is usually used to initialize some time-consuming operations that only need to be performed once at the beginning of the program, such as reading a file. Doing so can avoid repeated execution at runtime, thereby improving the efficiency and responsiveness of the program.
Use any of the following methods to preload an operator:
-
Click
at the top of the operator.
-
Click
at the top of the operator parameter panel.
How to add a Note to an Operator
To add a note to an operator, perform the following steps:
-
Right-click the operator.
-
Click Note in the shortcut menu.
-
After entering the custom content in the Edit Note window, click Confirm.