Class FunctionEvaluatorFactory

    • Method Detail

      • getExpressionEvaluator

        @Nullable
        public static FunctionEvaluator getExpressionEvaluator​(FieldSpec fieldSpec)
        Creates the FunctionEvaluator for the given field spec 1. If transform expression is defined, use it to create the appropriate FunctionEvaluator 2. For TIME column, if conversion is needed, TimeSpecFunctionEvaluator for backward compatible handling of time spec. This is needed until we migrate to DateTimeFieldSpec 3. For columns ending with __KEYS or __VALUES (used for interpreting Map column in Avro), create default groovy functions for handing the Map 4. Return null, if none of the above
      • isGroovyExpression

        public static boolean isGroovyExpression​(String transformExpression)
        Returns:
        true if the given transform function is a groovy expression, otherwise returns false