Jython Evaluator

Supported pipeline types:
  • Data Collector

The Jython Evaluator processor uses custom Jython code to process data. Use the Jython Evaluator processor to incorporate custom Jython code in a pipeline. The processor supports Jython version 2.7.x.
You can develop the following scripts for the processor:
  • Initialization script - Optional initialization script that sets up any required resources or connections. The initialization script is run once when the pipeline starts.
  • Main processing script - Main script that processes data. The main script is run for each record or each batch of data, based on the configured processing mode.
  • Destroy script - Optional destroy script that closes any resources or connections that were opened by the processor. The destroy script is run once when the pipeline stops.

When you use a Jython Evaluator processor in a pipeline, Data Collector passes a batch of data to the processor and converts the data to a scripting-friendly data structure for processing.

You can call external Java code from the script. You can also call external Python modules from the script. The processor supports Python modules that contain Python code only. Python modules that include native languages are not supported.

The Jython Evaluator processor provides extensive sample code that you can use to develop your script.

When configuring the processor, you specify the processing mode, enter the scripts, and specify the method to access records and any script parameters used in the script.