Creating the onPlacement Method

Regardless of whether you are using the Spark data frame template, you must override the onPlacement() method.

Prerequisites

You must have created the GUI node class.
This describes the parameters of the OperatorDialog in the GUI. The other two methods, onInputorParameterChange and onOutputVisualization, will be implemented in a future tutorial. They are not needed for this basic example.

Procedure

  • Add the following code:
    override def onPlacement(operatorDialog: OperatorDialog,
        operatorDataSourceManager: OperatorDataSourceManager,
        operatorSchemaManager: OperatorSchemaManager): Unit = {
       // code for operatorDialog goes here
    }