Package org.apache.sysds.utils
Class ParameterBuilder
java.lang.Object
org.apache.sysds.utils.ParameterBuilder
Class to help setting variables in a script.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidsetVariablesInScript(String strScriptDirectory, String strScriptFile, HashMap<String, String> variables) Replaces variables in a DML or R script with the specified values.static voidsetVariablesInScript(String strScriptPathName, HashMap<String, String> variables) Replaces variables in a DML or R script with the specified values.
-
Constructor Details
-
ParameterBuilder
public ParameterBuilder()
-
-
Method Details
-
setVariablesInScript
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 scriptvariables- 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 scriptstrScriptFile- filename of the DML scriptvariables- hashmap containing all the variables and their replacements
-