public class PartialAggregate extends Lop
Lop.SimpleInstType, Lop.Type, Lop.VisitStatus_beginColumn, _beginLine, _endColumn, _endLine, _filename, CP_CHILD_THREAD, CP_ROOT_THREAD_ID, DATATYPE_PREFIX, FILE_SEPARATOR, FRAME_VAR_NAME_PREFIX, INSTRUCTION_DELIMITOR, LITERAL_PREFIX, MATRIX_VAR_NAME_PREFIX, NAME_VALUE_SEPARATOR, OPERAND_DELIMITOR, PROCESS_PREFIX, SAMPLE_FRACTION, SCALAR_VAR_NAME_PREFIX, UPDATE_INPLACE_PREFIX, VALUETYPE_PREFIX, VARIABLE_NAME_PLACEHOLDER| Constructor and Description |
|---|
PartialAggregate(Lop input,
Types.AggOp op,
Types.Direction direct,
Types.DataType dt,
Types.ValueType vt,
AggBinaryOp.SparkAggType aggtype,
LopProperties.ExecType et) |
PartialAggregate(Lop input,
Types.AggOp op,
Types.Direction direct,
Types.DataType dt,
Types.ValueType vt,
LopProperties.ExecType et,
int k) |
| Modifier and Type | Method and Description |
|---|---|
Types.CorrectionLocationType |
getCorrectionLocation()
This method computes the location of "correction" terms in the output
produced by PartialAgg instruction.
|
static Types.CorrectionLocationType |
getCorrectionLocation(Types.AggOp operation,
Types.Direction direction) |
String |
getInstructions(String input1,
String output)
Instruction generation for for CP and Spark
|
static String |
getOpcode(Types.AggOp op,
Types.Direction dir) |
void |
setDimensionsBasedOnDirection(long dim1,
long dim2,
long blen) |
static void |
setDimensionsBasedOnDirection(Lop lop,
long dim1,
long dim2,
long blen,
Types.Direction dir) |
String |
toString()
Method to have Lops print their state.
|
addInput, addOutput, addToDag, createReachable, getBeginColumn, getBeginLine, getDataType, getEndColumn, getEndLine, getExecType, getFilename, getID, getInputs, getInstructions, getInstructions, getInstructions, getInstructions, getInstructions, getInstructions, getInstructions, getInstructions, getInstructions, getInstructions, getInstructions, getLevel, getOutputParameters, getOutputs, getPrivacyConstraint, getProducesIntermediateOutput, getReachable, getSimpleInstructionType, getType, getValueType, getVisited, isDataExecLocation, isVariable, prepInputOperand, prepInputOperand, prepOperand, prepOperand, prepOutputOperand, prepOutputOperand, prepOutputOperand, prepScalarInputOperand, prepScalarInputOperand, prepScalarLabel, prepScalarOperand, printErrorLocation, removeConsumer, resetVisitStatus, setAllPositions, setBeginColumn, setBeginLine, setConsumerCount, setDataType, setEndColumn, setEndLine, setFilename, setPrivacyConstraint, setValueType, setVisitedpublic PartialAggregate(Lop input, Types.AggOp op, Types.Direction direct, Types.DataType dt, Types.ValueType vt, LopProperties.ExecType et, int k)
public PartialAggregate(Lop input, Types.AggOp op, Types.Direction direct, Types.DataType dt, Types.ValueType vt, AggBinaryOp.SparkAggType aggtype, LopProperties.ExecType et)
public Types.CorrectionLocationType getCorrectionLocation()
public static Types.CorrectionLocationType getCorrectionLocation(Types.AggOp operation, Types.Direction direction)
public void setDimensionsBasedOnDirection(long dim1,
long dim2,
long blen)
public static void setDimensionsBasedOnDirection(Lop lop, long dim1, long dim2, long blen, Types.Direction dir)
public String toString()
Loppublic String getInstructions(String input1, String output)
getInstructions in class Lopinput1 - input 1output - outputpublic static String getOpcode(Types.AggOp op, Types.Direction dir)
Copyright © 2020 The Apache Software Foundation. All rights reserved.