Package org.apache.sysds.hops
Class DataOp
java.lang.Object
org.apache.sysds.hops.Hop
org.apache.sysds.hops.DataOp
- All Implemented Interfaces:
ParseInfo
A DataOp can be either a persistent read/write or transient read/write - writes will always have at least one input,
but all types can have parameters (e.g., for csv literals of delimiter, header, etc).
-
Field Summary
Fields inherited from class org.apache.sysds.hops.Hop
_beginColumn, _beginLine, _endColumn, _endLine, _filename, _text, CPThreshold -
Constructor Summary
ConstructorsConstructorDescriptionDataOp(String l, Types.DataType dt, Types.ValueType vt, Types.OpOpData dop, String fname, long dim1, long dim2, long nnz, int blen) READ operation for Matrix w/ dim1, dim2.DataOp(String l, Types.DataType dt, Types.ValueType vt, Types.OpOpData dop, String fname, long dim1, long dim2, long nnz, MatrixObject.UpdateType update, int blen) DataOp(String l, Types.DataType dt, Types.ValueType vt, Types.OpOpData dop, HashMap<String, Hop> params) READ operation for Matrix / SQL operation for tensor This constructor supports expressions in parametersDataOp(String l, Types.DataType dt, Types.ValueType vt, Types.OpOpData dop, Hop in, HashMap<String, Hop> inputParameters) WRITE operation for Matrix This constructor supports expression in parametersDataOp(String l, Types.DataType dt, Types.ValueType vt, Hop in, Types.OpOpData dop, String fname) -
Method Summary
Modifier and TypeMethodDescriptionbooleanclone()booleanvoidExplicitly disables recompilation of transient reads, this additional information is required because requiresRecompile is set in a top-down manner, hence any value set from a consuming operating would be overwritten by opFindExecType.longgetOp()intgetParameterIndex(String name) booleanbooleanChecks if the hop is a DataOp with federated data.booleanIn memory-based optimizer mode (see OptimizerUtils.isMemoryBasedOptLevel()), the exectype is determined by checking this method as well as memory budget of this Hop.booleanbooleanisRead()booleanisWrite()voidUpdate the output size information for this hop.voidremoveInput(String inputName) Remove an input from the list of inputs and from the parameter index map.voidsetDataOpType(Types.OpOpData type) voidvoidsetFileName(String fn) voidsetInputBlocksize(long blen) voidsetOnlyRDD(boolean flag) voidsetOutputParams(long dim1, long dim2, long nnz, MatrixObject.UpdateType update, int blen) Methods inherited from class org.apache.sysds.hops.Hop
activatePrefetch, addAllInputs, addInput, checkAndSetForcedPlatform, checkAndSetInvalidCPDimsAndSize, clearMemEstimate, colsKnown, compressedSize, computeBoundsInformation, computeBoundsInformation, computeBoundsInformation, computeMemEstimate, computeSizeInformation, computeSizeInformation, computeSizeInformation, constructAndSetLopsDataFlowProperties, createOffsetLop, deactivatePrefetch, dimsKnown, dimsKnown, dimsKnownAny, getBeginColumn, getBeginLine, getBlocksize, getCompressedSize, getDataCharacteristics, getDataType, getDim, getDim1, getDim2, getEndColumn, getEndLine, getExecType, getFederatedOutput, getFilename, getForcedExecType, getHopID, getInput, getInput, getInputMemEstimate, getInputMemEstimate, getInputOutputSize, getIntermediateMemEstimate, getLength, getLops, getMemEstimate, getName, getNnz, getOutputMemEstimate, getOutputMemEstimate, getParent, getSparsity, getSpBroadcastSize, getText, getUpdateType, getValueType, hasCompressedInput, hasFederatedOutput, hasLocalOutput, hasValidCPDimsAndSize, isCompressedOutput, isFederated, isMatrix, isMemEstimated, isOutputEmptyBlocks, isRequiredDecompression, isScalar, isTransposeSafe, isVisited, prefetchActivated, printErrorLocation, refreshColsParameterInformation, refreshColsParameterInformation, refreshMemEstimates, refreshRowsParameterInformation, refreshRowsParameterInformation, requiresCheckpoint, requiresCompression, requiresLineageCaching, requiresReblock, requiresRecompile, resetExecType, resetRecompilationFlag, resetRecompilationFlag, resetVisitStatus, resetVisitStatus, resetVisitStatus, resetVisitStatusForced, rowsKnown, setBeginColumn, setBeginLine, setBlocksize, setCompressedOutput, setCompressedSize, setDataType, setDim, setDim1, setDim2, setEndColumn, setEndLine, setExecType, setFederatedOutput, setFilename, setForcedExecType, setLops, setMemEstimate, setName, setNnz, setOutputEmptyBlocks, setParseInfo, setRequiresCheckpoint, setRequiresCompression, setRequiresCompression, setRequiresDeCompression, setRequiresLineageCaching, setRequiresReblock, setRequiresRecompile, setText, setUpdateType, setValueType, setVisited, setVisited, someInputFederated, toString, updateLopFedOut, updateLopFedOut
-
Constructor Details
-
DataOp
public DataOp(String l, Types.DataType dt, Types.ValueType vt, Types.OpOpData dop, String fname, long dim1, long dim2, long nnz, int blen) READ operation for Matrix w/ dim1, dim2. This constructor does not support any expression in parameters- Parameters:
l- ?dt- data typevt- value typedop- data operator typefname- file namedim1- dimension 1dim2- dimension 2nnz- number of non-zerosblen- rows/cols per block
-
DataOp
public DataOp(String l, Types.DataType dt, Types.ValueType vt, Types.OpOpData dop, String fname, long dim1, long dim2, long nnz, MatrixObject.UpdateType update, int blen) -
DataOp
public DataOp(String l, Types.DataType dt, Types.ValueType vt, Types.OpOpData dop, HashMap<String, Hop> params) READ operation for Matrix / SQL operation for tensor This constructor supports expressions in parameters- Parameters:
l- ?dt- data typevt- value typedop- data operator typeparams- input parameters
-
DataOp
public DataOp(String l, Types.DataType dt, Types.ValueType vt, Hop in, Types.OpOpData dop, String fname) -
DataOp
public DataOp(String l, Types.DataType dt, Types.ValueType vt, Types.OpOpData dop, Hop in, HashMap<String, Hop> inputParameters) WRITE operation for Matrix This constructor supports expression in parameters- Parameters:
l- ?dt- data typevt- value typedop- data operator typein- high-level operatorinputParameters- input parameters
-
-
Method Details
-
getOp
-
setDataOpType
-
setOutputParams
public void setOutputParams(long dim1, long dim2, long nnz, MatrixObject.UpdateType update, int blen) -
setFileName
-
getFileName
-
getParameterIndex
-
setOnlyRDD
public void setOnlyRDD(boolean flag) -
hasOnlyRDD
public boolean hasOnlyRDD() -
isGPUEnabled
public boolean isGPUEnabled()Description copied from class:HopIn memory-based optimizer mode (see OptimizerUtils.isMemoryBasedOptLevel()), the exectype is determined by checking this method as well as memory budget of this Hop. Please see findExecTypeByMemEstimate for more detail. This method is necessary because not all operator are supported efficiently on GPU (for example: operations on frames and scalar as well as operations such as table).- Specified by:
isGPUEnabledin classHop- Returns:
- true if the Hop is eligible for GPU Exectype.
-
constructLops
- Specified by:
constructLopsin classHop
-
setFileFormat
-
getFileFormat
-
setInputBlocksize
public void setInputBlocksize(long blen) -
getInputBlocksize
public long getInputBlocksize() -
isRead
public boolean isRead() -
isWrite
public boolean isWrite() -
isPersistentReadWrite
public boolean isPersistentReadWrite() -
isFederatedDataOp
public boolean isFederatedDataOp()Description copied from class:HopChecks if the hop is a DataOp with federated data.- Overrides:
isFederatedDataOpin classHop- Returns:
- true if hop is a federated DataOp
-
getOpString
- Specified by:
getOpStringin classHop
-
allowsAllExecTypes
public boolean allowsAllExecTypes()- Specified by:
allowsAllExecTypesin classHop
-
refreshSizeInformation
public void refreshSizeInformation()Description copied from class:HopUpdate the output size information for this hop.- Specified by:
refreshSizeInformationin classHop
-
disableRecompileRead
public void disableRecompileRead()Explicitly disables recompilation of transient reads, this additional information is required because requiresRecompile is set in a top-down manner, hence any value set from a consuming operating would be overwritten by opFindExecType. -
clone
- Specified by:
clonein classHop- Throws:
CloneNotSupportedException
-
compare
-
removeInput
Remove an input from the list of inputs and from the parameter index map. Parameter index map values higher than the index of the removed input will be decremented by one.- Parameters:
inputName- The name of the input to remove
-