Class ScriptTransformer

    • Constructor Detail

      • ScriptTransformer

        public ScriptTransformer()
    • Method Detail

      • transformRow

        public Object transformRow​(Map<String,​Object> row,
                                   Context context)
        Description copied from class: Transformer
        The input is a row of data and the output has to be a new row.
        Specified by:
        transformRow in class Transformer
        Parameters:
        row - A row of data
        context - The current context
        Returns:
        The changed data. It must be a Map<String, Object> if it returns only one row or if there are multiple rows to be returned it must be a List<Map<String, Object>>
      • setFunctionName

        public void setFunctionName​(String methodName)
      • getFunctionName

        public String getFunctionName()