Follow this procedure to set up your environment for building a source operator.
Procedure
If desired, open the
PluginTemplateProject in IntelliJ. This includes the correct folder structure and metadata to build your operator.
Right-click on
PluginTemplateProject/src/main/scala, and choose
Mark Directory As...Generated Sources Root.
Create a package in
PluginTemplateProject/src/main/scala to hold your operator code. Use your company's naming scheme for packages if you have one; we called our package
com.mycompany.plugins.
Within that package, create a Scala file called
SimpleDatasetGenerator.scala.
Your code should look like this so far:
package com.mycompany.plugins
class SimpleDatasetGenerator {
}
You will not need this auto-generated class, so you can delete it.