org.apache.sysml.runtime.instructions.spark

Class SPInstruction

    • Field Detail

      • _optr

        protected org.apache.sysml.runtime.matrix.operators.Operator _optr
      • _requiresLabelUpdate

        protected boolean _requiresLabelUpdate
    • Constructor Detail

      • SPInstruction

        protected SPInstruction(String opcode,
                                String istr)
      • SPInstruction

        protected SPInstruction(org.apache.sysml.runtime.matrix.operators.Operator op,
                                String opcode,
                                String istr)
    • Method Detail

      • preprocessInstruction

        public Instruction preprocessInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec)
                                          throws DMLRuntimeException
        Description copied from class: Instruction
        This method should be used for any setup before executing this instruction. Overwriting methods should first call the super method and subsequently do their custom setup.
        Overrides:
        preprocessInstruction in class Instruction
        Parameters:
        ec - execution context
        Returns:
        instruction
        Throws:
        DMLRuntimeException - if DMLRuntimeException occurs
      • processInstruction

        public abstract void processInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec)
                                         throws DMLRuntimeException
        Description copied from class: Instruction
        This method should be used to execute the instruction.
        Specified by:
        processInstruction in class Instruction
        Parameters:
        ec - execution context
        Throws:
        DMLRuntimeException - if DMLRuntimeException occurs
      • postprocessInstruction

        public void postprocessInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec)
                                    throws DMLRuntimeException
        Description copied from class: Instruction
        This method should be used for any tear down after executing this instruction. Overwriting methods should first do their custom tear down and subsequently call the super method.
        Overrides:
        postprocessInstruction in class Instruction
        Parameters:
        ec - execution context
        Throws:
        DMLRuntimeException - if DMLRuntimeException occurs

Copyright © 2017 The Apache Software Foundation. All rights reserved.