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, setMaxNumThreads
addAllInputs, 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, getInputMemEstimate, getInputOutputSize, getIntermediateMemEstimate, getLength, getLops, getMemEstimate, getName, getNnz, getOutputMemEstimate, getParent, getPrivacy, getSparsity, getSpBroadcastSize, getText, getUpdateType, getValueType, hasMatrixInputWithDifferentBlocksizes, hasValidCPDimsAndSize, 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, setRequiresLineageCaching, setRequiresReblock, setRequiresRecompile, setText, setUpdateType, setValueType, setVisited, setVisited
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
ctxAndFilenameToParseInfo
public 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()
Hop
checkArity
in class Hop
public Types.OpOp2 getOp()
public void setOp(Types.OpOp2 iop)
public void setOuterVectorOperation(boolean flag)
public boolean isOuter()
public boolean isGPUEnabled()
Hop
isGPUEnabled
in class Hop
public boolean isMultiThreadedOpType()
isMultiThreadedOpType
in class MultiThreadedHop
public Lop constructLops()
constructLops
in class Hop
public String getOpString()
getOpString
in class Hop
public boolean allowsAllExecTypes()
allowsAllExecTypes
in class Hop
public 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()
Hop
refreshSizeInformation
in class Hop
public Object clone() throws CloneNotSupportedException
clone
in class Hop
CloneNotSupportedException
public boolean supportsMatrixScalarOperations()
public boolean isPPredOperation()
public Types.OpOp2 getComplementPPredOperation()
Copyright © 2020 The Apache Software Foundation. All rights reserved.