Class Instruction
java.lang.Object
org.apache.sysds.runtime.instructions.Instruction
- Direct Known Subclasses:
CPInstruction,FEDInstruction,GPUInstruction,OOCInstruction,SPInstruction
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintintintintlongGetter for instruction unique identifierintGetter for instruction line numberabstract Instruction.ITypegetType()voidThis method should be used for any tear down after executing this instruction.This method should be used for any setup before executing this instruction.voidprintMe()abstract voidThis method should be used to execute the instruction.booleanvoidsetInstID(long id) Setter for instruction unique identifiervoidsetLocation(String filename, int beginLine, int endLine, int beginCol, int endCol) voidsetLocation(Lop lop) voidvoidsetLocation(Instruction oldInst) toString()voidupdateInstructionThreadID(String pattern, String replace) All instructions that have thread-specific filenames or names encoded in it should overwrite this method in order to update (1) the in-memory instruction and (2) the instruction string
-
Field Details
-
OPERAND_DELIM
- See Also:
-
DATATYPE_PREFIX
- See Also:
-
VALUETYPE_PREFIX
- See Also:
-
LITERAL_PREFIX
- See Also:
-
INSTRUCTION_DELIM
- See Also:
-
SP_INST_PREFIX
- See Also:
-
GPU_INST_PREFIX
- See Also:
-
FEDERATED_INST_PREFIX
- See Also:
-
OOC_INST_PREFIX
- See Also:
-
-
Method Details
-
getFilename
-
getBeginLine
public int getBeginLine() -
getEndLine
public int getEndLine() -
getBeginColumn
public int getBeginColumn() -
getEndColumn
public int getEndColumn() -
getType
-
setLocation
-
setLocation
-
setLocation
-
setLocation
-
getOperator
-
getLineNum
public int getLineNum()Getter for instruction line number- Returns:
- lineNum Instruction approximate DML script line number
-
setInstID
public void setInstID(long id) Setter for instruction unique identifier- Parameters:
id- Instruction unique identifier
-
getInstID
public long getInstID()Getter for instruction unique identifier- Returns:
- instID Instruction unique identifier
-
printMe
public void printMe() -
toString
-
getInstructionString
-
getGraphString
-
getOpcode
-
getExtendedOpcode
-
requiresLabelUpdate
public boolean requiresLabelUpdate() -
updateInstructionThreadID
All instructions that have thread-specific filenames or names encoded in it should overwrite this method in order to update (1) the in-memory instruction and (2) the instruction string- Parameters:
pattern- ?replace- ?
-
preprocessInstruction
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.- Parameters:
ec- execution context- Returns:
- instruction
-
processInstruction
This method should be used to execute the instruction.- Parameters:
ec- execution context
-
postprocessInstruction
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.- Parameters:
ec- execution context
-