[ https://issues.apache.org/jira/browse/SYSTEMML-836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deron Eriksson reassigned SYSTEMML-836: --------------------------------------- Assignee: Deron Eriksson > Create ScriptFactory convenience methods for resources on classpath > ------------------------------------------------------------------- > > Key: SYSTEMML-836 > URL: https://issues.apache.org/jira/browse/SYSTEMML-836 > Project: SystemML > Issue Type: Task > Components: APIs > Reporter: Deron Eriksson > Assignee: Deron Eriksson > Priority: Minor > > Currently a DML Script object can be created by ScriptFactory by getting an > input stream to a resource on the classpath, such as this example: > {code} > val inputStream = > getClass.getResourceAsStream("/scripts/algorithms/Univar-Stats.dml") > val script = ScriptFactory.dmlFromInputStream(inputStream) > {code} > This can be further simplified by creating a ScriptFactory method like > dmlFromResourcePath (or dmlFromClasspath) so a user could instead do: > {code} > val script = > ScriptFactory.dmlFromResourcePath("/scripts/algorithms/Univar-Stats.dml") > {code} > An addition method should be created for PyDML, such as pydmlFromResourcePath > (or pydmlFromClasspath). -- This message was sent by Atlassian JIRA (v6.3.4#6332)