Class CPInstruction
- java.lang.Object
- 
- org.apache.sysds.runtime.instructions.Instruction
- 
- org.apache.sysds.runtime.instructions.cp.CPInstruction
 
 
- 
- Direct Known Subclasses:
- BuiltinNaryCPInstruction,- ComputationCPInstruction,- FunctionCallCPInstruction,- SqlCPInstruction,- VariableCPInstruction
 
 public abstract class CPInstruction extends Instruction 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classCPInstruction.CPType- 
Nested classes/interfaces inherited from class org.apache.sysds.runtime.instructions.InstructionInstruction.IType
 
- 
 - 
Field Summary- 
Fields inherited from class org.apache.sysds.runtime.instructions.InstructionDATATYPE_PREFIX, FEDERATED_INST_PREFIX, GPU_INST_PREFIX, INSTRUCTION_DELIM, LITERAL_PREFIX, OPERAND_DELIM, SP_INST_PREFIX, VALUETYPE_PREFIX
 
- 
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description CPInstruction.CPTypegetCPInstructionType()StringgetGraphString()Instruction.ITypegetType()voidpostprocessInstruction(ExecutionContext ec)This method should be used for any tear down after executing this instruction.InstructionpreprocessInstruction(ExecutionContext ec)This method should be used for any setup before executing this instruction.abstract voidprocessInstruction(ExecutionContext ec)This method should be used to execute the instruction.booleanrequiresLabelUpdate()static StringupdateLabels(String instList, LocalVariableMap labelValueMapping)Takes a delimited string of instructions, and replaces ALL placeholder labels (such as ##mVar2## and ##Var5##) in ALL instructions.- 
Methods inherited from class org.apache.sysds.runtime.instructions.InstructiongetBeginColumn, getBeginLine, getEndColumn, getEndLine, getExtendedOpcode, getFilename, getInstID, getInstructionString, getLineNum, getOpcode, getOperator, getPrivacyConstraint, printMe, setInstID, setLocation, setLocation, setLocation, setLocation, setPrivacyConstraint, setPrivacyConstraint, toString, updateInstructionThreadID
 
- 
 
- 
- 
- 
Method Detail- 
getTypepublic Instruction.IType getType() - Specified by:
- getTypein class- Instruction
 
 - 
getCPInstructionTypepublic CPInstruction.CPType getCPInstructionType() 
 - 
requiresLabelUpdatepublic boolean requiresLabelUpdate() - Overrides:
- requiresLabelUpdatein class- Instruction
 
 - 
getGraphStringpublic String getGraphString() - Overrides:
- getGraphStringin class- Instruction
 
 - 
preprocessInstructionpublic Instruction preprocessInstruction(ExecutionContext ec) Description copied from class:InstructionThis 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:
- preprocessInstructionin class- Instruction
- Parameters:
- ec- execution context
- Returns:
- instruction
 
 - 
processInstructionpublic abstract void processInstruction(ExecutionContext ec) Description copied from class:InstructionThis method should be used to execute the instruction.- Specified by:
- processInstructionin class- Instruction
- Parameters:
- ec- execution context
 
 - 
updateLabelspublic static String updateLabels(String instList, LocalVariableMap labelValueMapping) Takes a delimited string of instructions, and replaces ALL placeholder labels (such as ##mVar2## and ##Var5##) in ALL instructions.- Parameters:
- instList- instruction list as string
- labelValueMapping- local variable map
- Returns:
- instruction list after replacement
 
 - 
postprocessInstructionpublic void postprocessInstruction(ExecutionContext ec) Description copied from class:InstructionThis 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:
- postprocessInstructionin class- Instruction
- Parameters:
- ec- execution context
 
 
- 
 
-