use of org.apache.sysml.runtime.instructions.spark.SPInstruction.SPINSTRUCTION_TYPE in project incubator-systemml by apache.
the class SPInstructionParser method parseSingleInstruction.
public static SPInstruction parseSingleInstruction(String str) throws DMLRuntimeException {
if (str == null || str.isEmpty())
return null;
SPINSTRUCTION_TYPE cptype = InstructionUtils.getSPType(str);
if (cptype == null)
// return null;
throw new DMLRuntimeException("Invalid SP Instruction Type: " + str);
SPInstruction spinst = parseSingleInstruction(cptype, str);
if (spinst == null)
throw new DMLRuntimeException("Unable to parse instruction: " + str);
return spinst;
}
Aggregations