Development Workflow

The following figure shows the UDF development workflow.

Figure 1 UDF development workflow

Table 1 details the procedure.

Table 1 UDF development procedure

Action

Description

See Also

Environment setup

Set up the development and operating environments required for UDF development, execution, and verification.

Development Preparation

Project creation

Create a UDF project.

Project Creation

Development process

Inherit the MetaFlowFunc base class of the meta_flow_func.h file, and rewrite the Init() and Proc() functions. Implement the compute logic of the UDF.

Development Process (Calling the MetaFlowFunc Class)

Project build

Build the user-defined function .cpp file into a .so file.

Project Build

Graph construction by using DataFlow APIs

Use DataFlow APIs to construct and execute a graph.

Graph Construction by Using DataFlow APIs

System testing (ST)

Perform ST to test the UDF functionality in real-device environment.

Testing