Package org.apache.flink.optimizer.dag
Class GroupReduceNode
- java.lang.Object
-
- org.apache.flink.optimizer.dag.OptimizerNode
-
- org.apache.flink.optimizer.dag.SingleInputNode
-
- org.apache.flink.optimizer.dag.GroupReduceNode
-
- All Implemented Interfaces:
EstimateProvider,DumpableNode<OptimizerNode>,org.apache.flink.util.Visitable<OptimizerNode>
public class GroupReduceNode extends SingleInputNode
The optimizer representation of a GroupReduce operation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.flink.optimizer.dag.OptimizerNode
OptimizerNode.UnclosedBranchDescriptor
-
-
Field Summary
-
Fields inherited from class org.apache.flink.optimizer.dag.SingleInputNode
inConn, keys
-
Fields inherited from class org.apache.flink.optimizer.dag.OptimizerNode
cachedPlans, closedBranchingNodes, costWeight, estimatedNumRecords, estimatedOutputSize, hereJoinedBranches, id, MAX_DYNAMIC_PATH_COST_WEIGHT, onDynamicPath, openBranches, uniqueFields
-
-
Constructor Summary
Constructors Constructor Description GroupReduceNode(org.apache.flink.api.common.operators.base.GroupReduceOperatorBase<?,?,?> operator)Creates a new optimizer node for the given operator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcomputeOperatorSpecificDefaultEstimates(DataStatistics statistics)GroupReduceNodegetCombinerUtilityNode()org.apache.flink.api.common.operators.base.GroupReduceOperatorBase<?,?,?>getOperator()Gets the operator represented by this optimizer node.StringgetOperatorName()Gets the name of this node, which is the name of the function/operator, or data source / data sink.protected List<OperatorDescriptorSingle>getPossibleProperties()protected org.apache.flink.api.common.operators.SemanticPropertiesgetSemanticPropertiesForLocalPropertyFiltering()booleanisCombineable()Checks, whether a combiner function has been given for the function encapsulated by this reduce contract.-
Methods inherited from class org.apache.flink.optimizer.dag.SingleInputNode
accept, addLocalCandidates, computeInterestingPropertiesForInputs, computeUnclosedBranchStack, getAlternativePlans, getIncomingConnection, getIncomingConnections, getPredecessorNode, getSemanticProperties, getSemanticPropertiesForGlobalPropertyFiltering, instantiateCandidate, setIncomingConnection, setInput
-
Methods inherited from class org.apache.flink.optimizer.dag.OptimizerNode
addBroadcastConnection, addClosedBranch, addClosedBranches, addOutgoingConnection, areBranchCompatible, clearInterestingProperties, computeOutputEstimates, computeUnclosedBranchStackForBroadcastInputs, computeUnionOfInterestingPropertiesFromSuccessors, getBranchesForParent, getBroadcastConnectionNames, getBroadcastConnections, getClosedBranchingNodes, getCostWeight, getDumpableInputs, getEstimatedAvgWidthPerOutputRecord, getEstimatedNumRecords, getEstimatedOutputSize, getId, getInterestingProperties, getMaxDepth, getMinimalMemoryAcrossAllSubTasks, getOpenBranches, getOptimizerNode, getOutgoingConnections, getParallelism, getPlanNode, getPredecessors, getUniqueFields, hasUnclosedBranches, haveAllOutputConnectionInterestingProperties, identifyDynamicPath, initId, isBranching, isOnDynamicPath, markAllOutgoingConnectionsAsPipelineBreaking, mergeLists, prunePlanAlternatives, prunePlanAlternativesWithCommonBranching, readStubAnnotations, readUniqueFieldsAnnotation, removeClosedBranches, setBroadcastInputs, setEstimatedNumRecords, setEstimatedOutputSize, setParallelism, toString
-
-
-
-
Method Detail
-
getOperator
public org.apache.flink.api.common.operators.base.GroupReduceOperatorBase<?,?,?> getOperator()
Gets the operator represented by this optimizer node.- Overrides:
getOperatorin classSingleInputNode- Returns:
- The operator represented by this optimizer node.
-
isCombineable
public boolean isCombineable()
Checks, whether a combiner function has been given for the function encapsulated by this reduce contract.- Returns:
- True, if a combiner has been given, false otherwise.
-
getOperatorName
public String getOperatorName()
Description copied from class:OptimizerNodeGets the name of this node, which is the name of the function/operator, or data source / data sink.- Specified by:
getOperatorNamein classOptimizerNode- Returns:
- The node name.
-
getPossibleProperties
protected List<OperatorDescriptorSingle> getPossibleProperties()
- Specified by:
getPossiblePropertiesin classSingleInputNode
-
getSemanticPropertiesForLocalPropertyFiltering
protected org.apache.flink.api.common.operators.SemanticProperties getSemanticPropertiesForLocalPropertyFiltering()
- Overrides:
getSemanticPropertiesForLocalPropertyFilteringin classSingleInputNode
-
computeOperatorSpecificDefaultEstimates
protected void computeOperatorSpecificDefaultEstimates(DataStatistics statistics)
- Specified by:
computeOperatorSpecificDefaultEstimatesin classOptimizerNode
-
getCombinerUtilityNode
public GroupReduceNode getCombinerUtilityNode()
-
-