public class WriteSPInstruction extends SPInstruction
SPInstruction.SPINSTRUCTION_TYPE
Instruction.INSTRUCTION_TYPE
_optr, _requiresLabelUpdate, _sptype
beginCol, beginLine, DATATYPE_PREFIX, endCol, endLine, GPU_INST_PREFIX, instOpcode, INSTRUCTION_DELIM, instString, LITERAL_PREFIX, LOG, OPERAND_DELIM, SP_INST_PREFIX, type, VALUETYPE_PREFIX
Constructor and Description |
---|
WriteSPInstruction(org.apache.sysml.runtime.instructions.cp.CPOperand in1,
org.apache.sysml.runtime.instructions.cp.CPOperand in2,
org.apache.sysml.runtime.instructions.cp.CPOperand in3,
String opcode,
String str) |
Modifier and Type | Method and Description |
---|---|
FileFormatProperties |
getFormatProperties() |
boolean |
isInputMatrixBlock() |
static WriteSPInstruction |
parseInstruction(String str) |
protected void |
processFrameWriteInstruction(org.apache.sysml.runtime.controlprogram.context.SparkExecutionContext sec,
String fname,
OutputInfo oi,
org.apache.sysml.parser.Expression.ValueType[] schema) |
void |
processInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec)
This method should be used to execute the instruction.
|
protected void |
processMatrixWriteInstruction(org.apache.sysml.runtime.controlprogram.context.SparkExecutionContext sec,
String fname,
OutputInfo oi) |
void |
setFormatProperties(FileFormatProperties prop) |
void |
setInputMatrixBlock(boolean isMB) |
getGraphString, getSPInstructionType, postprocessInstruction, preprocessInstruction, requiresLabelUpdate
getExtendedOpcode, getInstID, getLineNum, getOpcode, getType, printMe, setInstID, setLocation, setLocation, setLocation, setLocation, setType, toString, updateInstructionThreadID
public static WriteSPInstruction parseInstruction(String str) throws DMLRuntimeException
DMLRuntimeException
public FileFormatProperties getFormatProperties()
public void setFormatProperties(FileFormatProperties prop)
public void setInputMatrixBlock(boolean isMB)
public boolean isInputMatrixBlock()
public void processInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec) throws DMLRuntimeException
Instruction
processInstruction
in class SPInstruction
ec
- execution contextDMLRuntimeException
- if DMLRuntimeException occursprotected void processMatrixWriteInstruction(org.apache.sysml.runtime.controlprogram.context.SparkExecutionContext sec, String fname, OutputInfo oi) throws DMLRuntimeException, IOException
DMLRuntimeException
IOException
protected void processFrameWriteInstruction(org.apache.sysml.runtime.controlprogram.context.SparkExecutionContext sec, String fname, OutputInfo oi, org.apache.sysml.parser.Expression.ValueType[] schema) throws DMLRuntimeException, IOException
DMLRuntimeException
IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.