Class GroovyFunctionEvaluator

  • All Implemented Interfaces:
    FunctionEvaluator

    public class GroovyFunctionEvaluator
    extends Object
    implements FunctionEvaluator
    An FunctionEvaluator for evaluating transform function expressions of a Schema field spec written in Groovy. GroovyShell is used to execute expressions. The transform expression must follow the convention Groovy({expression}, arguments1, argument2...) For example: "dimensionFieldSpecs": [ { "name": "fullName", "dataType": "STRING", "transformFunction": "Groovy({firstName+' '+lastName}, firstName, lastName)" } ]