Setting Up Your Environment

Follow this procedure to set up your environment for building a source operator.

    Procedure
  1. If you are using IntelliJ, then open the PluginTemplateProject in IntelliJ.
    Using IntelliJ provides for the correct folder structure and metadata to build your operator.
  2. Right-click PluginTemplateProject/src/main/scala, and choose Mark Directory As...Generated Sources Root.
  3. Create a package in PluginTemplateProject/src/main/scala to hold the operator code.
    Use your company's naming scheme for packages, if you have one. This example uses the package name com.mycompany.plugins.
  4. 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 do not need this auto-generated class, so you can delete it.