public class BinaryOp extends MultiThreadedHop
| Modifier and Type | Class and Description |
|---|---|
static class |
BinaryOp.AppendMethod |
static class |
BinaryOp.MMBinaryMethod |
| Modifier and Type | Field and Description |
|---|---|
static double |
APPEND_MEM_MULTIPLIER |
static BinaryOp.AppendMethod |
FORCED_APPEND_METHOD |
static BinaryOp.MMBinaryMethod |
FORCED_BINARY_METHOD |
_beginColumn, _beginLine, _endColumn, _endLine, _filename, _text, CPThreshold| Constructor and Description |
|---|
BinaryOp(String l,
Types.DataType dt,
Types.ValueType vt,
Types.OpOp2 o,
Hop inp1,
Hop inp2) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsAllExecTypes() |
void |
checkArity()
Check whether this Hop has a correct number of inputs.
|
Object |
clone() |
boolean |
compare(Hop that) |
Lop |
constructLops() |
static Lop |
constructSPAppendLop(Hop left,
Hop right,
Types.DataType dt,
Types.ValueType vt,
boolean cbind,
Hop current) |
static double |
footprintInMapper(long m1_dim1,
long m1_dim2,
long m2_dim1,
long m2_dim2,
long m1_rpb,
long m1_cpb)
Estimates the memory footprint of MapMult operation depending on which input is put into distributed cache.
|
Types.OpOp2 |
getComplementPPredOperation() |
Types.OpOp2 |
getOp() |
String |
getOpString() |
boolean |
isGPUEnabled()
In memory-based optimizer mode (see OptimizerUtils.isMemoryBasedOptLevel()),
the exectype is determined by checking this method as well as memory budget of this Hop.
|
boolean |
isMultiThreadedOpType() |
boolean |
isOuter() |
boolean |
isPPredOperation() |
void |
refreshSizeInformation()
Update the output size information for this hop.
|
static boolean |
requiresReplication(Hop left,
Hop right) |
void |
setOp(Types.OpOp2 iop) |
void |
setOuterVectorOperation(boolean flag) |
boolean |
supportsMatrixScalarOperations() |
getMaxNumThreads, setMaxNumThreadsaddAllInputs, addInput, checkAndSetForcedPlatform, checkAndSetInvalidCPDimsAndSize, clearMemEstimate, colsKnown, computeBoundsInformation, computeBoundsInformation, computeBoundsInformation, computeMemEstimate, computeSizeInformation, computeSizeInformation, computeSizeInformation, constructAndSetLopsDataFlowProperties, createOffsetLop, dimsKnown, dimsKnown, dimsKnownAny, getBeginColumn, getBeginLine, getBlocksize, getDataCharacteristics, getDataType, getDim, getDim1, getDim2, getEndColumn, getEndLine, getExecType, getFilename, getForcedExecType, getHopID, getInput, getInput, getInputMemEstimate, getInputOutputSize, getIntermediateMemEstimate, getLength, getLops, getMemEstimate, getName, getNnz, getOutputMemEstimate, getParent, getPrivacy, getSparsity, getSpBroadcastSize, getText, getUpdateType, getValueType, hasFederatedOutput, hasMatrixInputWithDifferentBlocksizes, hasValidCPDimsAndSize, isFederated, isFederatedOutput, isMatrix, isMemEstimated, isOutputEmptyBlocks, isScalar, isTransposeSafe, isVisited, printErrorLocation, refreshColsParameterInformation, refreshColsParameterInformation, refreshMemEstimates, refreshRowsParameterInformation, refreshRowsParameterInformation, requiresCheckpoint, requiresCompression, requiresLineageCaching, requiresReblock, requiresRecompile, resetExecType, resetRecompilationFlag, resetRecompilationFlag, resetVisitStatus, resetVisitStatus, resetVisitStatus, resetVisitStatusForced, rowsKnown, setBeginColumn, setBeginLine, setBlocksize, setDataType, setDim, setDim1, setDim2, setEndColumn, setEndLine, setFilename, setForcedExecType, setLops, setMemEstimate, setName, setNnz, setOutputEmptyBlocks, setParseInfo, setPrivacy, setRequiresCheckpoint, setRequiresCompression, setRequiresDeCompression, setRequiresLineageCaching, setRequiresReblock, setRequiresRecompile, setText, setUpdateType, setValueType, setVisited, setVisited, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitctxAndFilenameToParseInfopublic static final double APPEND_MEM_MULTIPLIER
public static BinaryOp.AppendMethod FORCED_APPEND_METHOD
public static BinaryOp.MMBinaryMethod FORCED_BINARY_METHOD
public BinaryOp(String l, Types.DataType dt, Types.ValueType vt, Types.OpOp2 o, Hop inp1, Hop inp2)
public void checkArity()
HopcheckArity in class Hoppublic Types.OpOp2 getOp()
public void setOp(Types.OpOp2 iop)
public void setOuterVectorOperation(boolean flag)
public boolean isOuter()
public boolean isGPUEnabled()
HopisGPUEnabled in class Hoppublic boolean isMultiThreadedOpType()
isMultiThreadedOpType in class MultiThreadedHoppublic Lop constructLops()
constructLops in class Hoppublic String getOpString()
getOpString in class Hoppublic boolean allowsAllExecTypes()
allowsAllExecTypes in class Hoppublic static Lop constructSPAppendLop(Hop left, Hop right, Types.DataType dt, Types.ValueType vt, boolean cbind, Hop current)
public static double footprintInMapper(long m1_dim1,
long m1_dim2,
long m2_dim1,
long m2_dim2,
long m1_rpb,
long m1_cpb)
optFindAppendMethod() to decide the execution strategy, as well as by
piggybacking to decide the number of Map-side instructions to put into a single GMR job.m1_dim1 - ?m1_dim2 - ?m2_dim1 - ?m2_dim2 - ?m1_rpb - ?m1_cpb - ?public void refreshSizeInformation()
HoprefreshSizeInformation in class Hoppublic Object clone() throws CloneNotSupportedException
clone in class HopCloneNotSupportedExceptionpublic boolean supportsMatrixScalarOperations()
public boolean isPPredOperation()
public Types.OpOp2 getComplementPPredOperation()
Copyright © 2021 The Apache Software Foundation. All rights reserved.