After a project is created, the framework code is automatically generated, based on which you can create Java UDFs, UDAFs, and UDTFs. This topic takes creating a UDF as an example to describe how to develop UDFs, UDAFs, and UDTFs.

  1. Choose Add > UDF.
  2. In the dialog box that appears, enter the class name and click OK. The framework code is automatically generated.
  3. Modify the variables in the evaluate method as needed.