Search in sources :

Example 1 with SPINSTRUCTION_TYPE

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;
}
Also used : WriteSPInstruction(org.apache.sysml.runtime.instructions.spark.WriteSPInstruction) CheckpointSPInstruction(org.apache.sysml.runtime.instructions.spark.CheckpointSPInstruction) CompressionSPInstruction(org.apache.sysml.runtime.instructions.spark.CompressionSPInstruction) CentralMomentSPInstruction(org.apache.sysml.runtime.instructions.spark.CentralMomentSPInstruction) CpmmSPInstruction(org.apache.sysml.runtime.instructions.spark.CpmmSPInstruction) AggregateTernarySPInstruction(org.apache.sysml.runtime.instructions.spark.AggregateTernarySPInstruction) UaggOuterChainSPInstruction(org.apache.sysml.runtime.instructions.spark.UaggOuterChainSPInstruction) ConvolutionSPInstruction(org.apache.sysml.runtime.instructions.spark.ConvolutionSPInstruction) CovarianceSPInstruction(org.apache.sysml.runtime.instructions.spark.CovarianceSPInstruction) IndexingSPInstruction(org.apache.sysml.runtime.instructions.spark.IndexingSPInstruction) PlusMultSPInstruction(org.apache.sysml.runtime.instructions.spark.PlusMultSPInstruction) Tsmm2SPInstruction(org.apache.sysml.runtime.instructions.spark.Tsmm2SPInstruction) BuiltinBinarySPInstruction(org.apache.sysml.runtime.instructions.spark.BuiltinBinarySPInstruction) RelationalBinarySPInstruction(org.apache.sysml.runtime.instructions.spark.RelationalBinarySPInstruction) BuiltinUnarySPInstruction(org.apache.sysml.runtime.instructions.spark.BuiltinUnarySPInstruction) TernarySPInstruction(org.apache.sysml.runtime.instructions.spark.TernarySPInstruction) PmmSPInstruction(org.apache.sysml.runtime.instructions.spark.PmmSPInstruction) ZipmmSPInstruction(org.apache.sysml.runtime.instructions.spark.ZipmmSPInstruction) MultiReturnParameterizedBuiltinSPInstruction(org.apache.sysml.runtime.instructions.spark.MultiReturnParameterizedBuiltinSPInstruction) ReorgSPInstruction(org.apache.sysml.runtime.instructions.spark.ReorgSPInstruction) RandSPInstruction(org.apache.sysml.runtime.instructions.spark.RandSPInstruction) TsmmSPInstruction(org.apache.sysml.runtime.instructions.spark.TsmmSPInstruction) AppendMSPInstruction(org.apache.sysml.runtime.instructions.spark.AppendMSPInstruction) CumulativeOffsetSPInstruction(org.apache.sysml.runtime.instructions.spark.CumulativeOffsetSPInstruction) QuaternarySPInstruction(org.apache.sysml.runtime.instructions.spark.QuaternarySPInstruction) QuantileSortSPInstruction(org.apache.sysml.runtime.instructions.spark.QuantileSortSPInstruction) AppendGSPInstruction(org.apache.sysml.runtime.instructions.spark.AppendGSPInstruction) RmmSPInstruction(org.apache.sysml.runtime.instructions.spark.RmmSPInstruction) CumulativeAggregateSPInstruction(org.apache.sysml.runtime.instructions.spark.CumulativeAggregateSPInstruction) SPInstruction(org.apache.sysml.runtime.instructions.spark.SPInstruction) CastSPInstruction(org.apache.sysml.runtime.instructions.spark.CastSPInstruction) QuantilePickSPInstruction(org.apache.sysml.runtime.instructions.spark.QuantilePickSPInstruction) PMapmmSPInstruction(org.apache.sysml.runtime.instructions.spark.PMapmmSPInstruction) AppendGAlignedSPInstruction(org.apache.sysml.runtime.instructions.spark.AppendGAlignedSPInstruction) BinUaggChainSPInstruction(org.apache.sysml.runtime.instructions.spark.BinUaggChainSPInstruction) MapmmChainSPInstruction(org.apache.sysml.runtime.instructions.spark.MapmmChainSPInstruction) ParameterizedBuiltinSPInstruction(org.apache.sysml.runtime.instructions.spark.ParameterizedBuiltinSPInstruction) MapmmSPInstruction(org.apache.sysml.runtime.instructions.spark.MapmmSPInstruction) MatrixReshapeSPInstruction(org.apache.sysml.runtime.instructions.spark.MatrixReshapeSPInstruction) SpoofSPInstruction(org.apache.sysml.runtime.instructions.spark.SpoofSPInstruction) CSVReblockSPInstruction(org.apache.sysml.runtime.instructions.spark.CSVReblockSPInstruction) ReblockSPInstruction(org.apache.sysml.runtime.instructions.spark.ReblockSPInstruction) AppendRSPInstruction(org.apache.sysml.runtime.instructions.spark.AppendRSPInstruction) ArithmeticBinarySPInstruction(org.apache.sysml.runtime.instructions.spark.ArithmeticBinarySPInstruction) AggregateUnarySPInstruction(org.apache.sysml.runtime.instructions.spark.AggregateUnarySPInstruction) SPINSTRUCTION_TYPE(org.apache.sysml.runtime.instructions.spark.SPInstruction.SPINSTRUCTION_TYPE) DMLRuntimeException(org.apache.sysml.runtime.DMLRuntimeException)

Aggregations

DMLRuntimeException (org.apache.sysml.runtime.DMLRuntimeException)1 AggregateTernarySPInstruction (org.apache.sysml.runtime.instructions.spark.AggregateTernarySPInstruction)1 AggregateUnarySPInstruction (org.apache.sysml.runtime.instructions.spark.AggregateUnarySPInstruction)1 AppendGAlignedSPInstruction (org.apache.sysml.runtime.instructions.spark.AppendGAlignedSPInstruction)1 AppendGSPInstruction (org.apache.sysml.runtime.instructions.spark.AppendGSPInstruction)1 AppendMSPInstruction (org.apache.sysml.runtime.instructions.spark.AppendMSPInstruction)1 AppendRSPInstruction (org.apache.sysml.runtime.instructions.spark.AppendRSPInstruction)1 ArithmeticBinarySPInstruction (org.apache.sysml.runtime.instructions.spark.ArithmeticBinarySPInstruction)1 BinUaggChainSPInstruction (org.apache.sysml.runtime.instructions.spark.BinUaggChainSPInstruction)1 BuiltinBinarySPInstruction (org.apache.sysml.runtime.instructions.spark.BuiltinBinarySPInstruction)1 BuiltinUnarySPInstruction (org.apache.sysml.runtime.instructions.spark.BuiltinUnarySPInstruction)1 CSVReblockSPInstruction (org.apache.sysml.runtime.instructions.spark.CSVReblockSPInstruction)1 CastSPInstruction (org.apache.sysml.runtime.instructions.spark.CastSPInstruction)1 CentralMomentSPInstruction (org.apache.sysml.runtime.instructions.spark.CentralMomentSPInstruction)1 CheckpointSPInstruction (org.apache.sysml.runtime.instructions.spark.CheckpointSPInstruction)1 CompressionSPInstruction (org.apache.sysml.runtime.instructions.spark.CompressionSPInstruction)1 ConvolutionSPInstruction (org.apache.sysml.runtime.instructions.spark.ConvolutionSPInstruction)1 CovarianceSPInstruction (org.apache.sysml.runtime.instructions.spark.CovarianceSPInstruction)1 CpmmSPInstruction (org.apache.sysml.runtime.instructions.spark.CpmmSPInstruction)1 CumulativeAggregateSPInstruction (org.apache.sysml.runtime.instructions.spark.CumulativeAggregateSPInstruction)1