Building and deploying a custom QueryFunction class

When you have finished development on your custom QueryFunction class, you build it, then add the resulting .jar file to the .ear file.

To build and deploy a QueryFunction:

  1. In your Eclipse project for the QueryFunction, open the build.xml file.
  2. If the project is not configured to build automatically, then in the outline view, right-click the deploy task and select Run as... > Ant Build.

    The Component SDK builds the QueryFunction, and places the resulting .jar file in the output directory you specified.

  3. To make the QueryFunction available to all of your custom components, place the .jar file in the app-inf/lib directory of the extracted .ear file.
  4. To add the QueryFunction to the Big Data Discovery instance:
    1. Add the .jar file to the app-inf/lib directory of the .ear file.
    2. Re-deploy the .ear file.