Class ParameterBuilder


  • public class ParameterBuilder
    extends Object
    Class to help setting variables in a script.
    • Constructor Detail

      • ParameterBuilder

        public ParameterBuilder()
    • Method Detail

      • setVariablesInScript

        public static void setVariablesInScript​(String strScriptPathName,
                                                HashMap<String,​String> variables)

        Replaces variables in a DML or R script with the specified values. A variable of format $$name$$ will be replaced where the name is used to identify the variable in the hashmap containing the belonging value.

        Parameters:
        strScriptPathName - filename of the DML script
        variables - hashmap containing all the variables and their replacements
      • setVariablesInScript

        public static void setVariablesInScript​(String strScriptDirectory,
                                                String strScriptFile,
                                                HashMap<String,​String> variables)

        Replaces variables in a DML or R script with the specified values. A variable of format $$name$$ will be replaced where the name is used to identify the variable in the hashmap containing the belonging value.

        Parameters:
        strScriptDirectory - directory which contains the DML script
        strScriptFile - filename of the DML script
        variables - hashmap containing all the variables and their replacements