Package org.apache.flink.optimizer.plan
Class BulkIterationPlanNode
- java.lang.Object
-
- org.apache.flink.optimizer.plan.PlanNode
-
- org.apache.flink.optimizer.plan.SingleInputPlanNode
-
- org.apache.flink.optimizer.plan.BulkIterationPlanNode
-
- All Implemented Interfaces:
IterationPlanNode,DumpableNode<PlanNode>,org.apache.flink.util.Visitable<PlanNode>
public class BulkIterationPlanNode extends SingleInputPlanNode implements IterationPlanNode
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.flink.optimizer.plan.PlanNode
PlanNode.FeedbackPropertiesMeetRequirementsReport, PlanNode.SourceAndDamReport
-
-
Field Summary
-
Fields inherited from class org.apache.flink.optimizer.plan.SingleInputPlanNode
driverKeys, driverSortOrders, input, postPassHelper
-
Fields inherited from class org.apache.flink.optimizer.plan.PlanNode
branchPlan, cumulativeCosts, globalProps, localProps, nodeCosts, outChannels, template
-
-
Constructor Summary
Constructors Constructor Description BulkIterationPlanNode(BulkIterationNode template, String nodeName, Channel input, BulkPartialSolutionPlanNode pspn, PlanNode rootOfStepFunction)BulkIterationPlanNode(BulkIterationNode template, String nodeName, Channel input, BulkPartialSolutionPlanNode pspn, PlanNode rootOfStepFunction, PlanNode rootOfTerminationCriterion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacceptForStepFunction(org.apache.flink.util.Visitor<PlanNode> visitor)BulkIterationNodegetIterationNode()intgetMemoryConsumerWeight()BulkPartialSolutionPlanNodegetPartialSolutionPlanNode()PlanNodegetRootOfStepFunction()PlanNodegetRootOfTerminationCriterion()org.apache.flink.api.common.typeutils.TypeSerializerFactory<?>getSerializerForIterationChannel()PlanNode.SourceAndDamReporthasDamOnPathDownTo(PlanNode source)Checks whether this node has a dam on the way down to the given source node.voidsetCosts(Costs nodeCosts)Sets the basic cost for this node to the given value, and sets the cumulative costs to those costs plus the cost shares of all inputs (regular and broadcast).voidsetSerializerForIterationChannel(org.apache.flink.api.common.typeutils.TypeSerializerFactory<?> serializerForIterationChannel)-
Methods inherited from class org.apache.flink.optimizer.plan.SingleInputPlanNode
accept, getComparator, getInput, getInputs, getKeys, getPredecessor, getPredecessors, getSingleInputNode, getSortOrders, getTrueArray, setComparator, setDriverKeyInfo, setDriverKeyInfo
-
Methods inherited from class org.apache.flink.optimizer.plan.PlanNode
addOutgoingChannel, checkPartialSolutionPropertiesMet, getBranchPlan, getBroadcastInputs, getCandidateAtBranchPoint, getCostWeight, getCumulativeCosts, getCumulativeCostsShare, getDriverStrategy, getDumpableInputs, getGlobalProperties, getGuaranteedAvailableMemory, getLocalProperties, getMinResources, getNodeCosts, getNodeName, getOptimizerNode, getOriginalOptimizerNode, getOutgoingChannels, getParallelism, getPlanNode, getPreferredResources, getProgramOperator, getRelativeMemoryPerSubTask, initProperties, isOnDynamicPath, isPruneMarkerSet, mergeBranchPlanMaps, mergeBranchPlanMaps, setBroadcastInputs, setDriverStrategy, setParallelism, setPruningMarker, setRelativeMemoryPerSubtask, toString, updatePropertiesWithUniqueSets
-
-
-
-
Constructor Detail
-
BulkIterationPlanNode
public BulkIterationPlanNode(BulkIterationNode template, String nodeName, Channel input, BulkPartialSolutionPlanNode pspn, PlanNode rootOfStepFunction)
-
BulkIterationPlanNode
public BulkIterationPlanNode(BulkIterationNode template, String nodeName, Channel input, BulkPartialSolutionPlanNode pspn, PlanNode rootOfStepFunction, PlanNode rootOfTerminationCriterion)
-
-
Method Detail
-
getIterationNode
public BulkIterationNode getIterationNode()
- Specified by:
getIterationNodein interfaceIterationPlanNode
-
getPartialSolutionPlanNode
public BulkPartialSolutionPlanNode getPartialSolutionPlanNode()
-
getRootOfStepFunction
public PlanNode getRootOfStepFunction()
-
getRootOfTerminationCriterion
public PlanNode getRootOfTerminationCriterion()
-
getSerializerForIterationChannel
public org.apache.flink.api.common.typeutils.TypeSerializerFactory<?> getSerializerForIterationChannel()
-
setSerializerForIterationChannel
public void setSerializerForIterationChannel(org.apache.flink.api.common.typeutils.TypeSerializerFactory<?> serializerForIterationChannel)
-
setCosts
public void setCosts(Costs nodeCosts)
Description copied from class:PlanNodeSets the basic cost for this node to the given value, and sets the cumulative costs to those costs plus the cost shares of all inputs (regular and broadcast).
-
getMemoryConsumerWeight
public int getMemoryConsumerWeight()
- Overrides:
getMemoryConsumerWeightin classPlanNode
-
hasDamOnPathDownTo
public PlanNode.SourceAndDamReport hasDamOnPathDownTo(PlanNode source)
Description copied from class:PlanNodeChecks whether this node has a dam on the way down to the given source node. This method returns either that (a) the source node is not found as a (transitive) child of this node, (b) the node is found, but no dam is on the path, or (c) the node is found and a dam is on the path.- Overrides:
hasDamOnPathDownToin classSingleInputPlanNode- Parameters:
source- The node on the path to which the dam is sought.- Returns:
- The result whether the node is found and whether a dam is on the path.
-
acceptForStepFunction
public void acceptForStepFunction(org.apache.flink.util.Visitor<PlanNode> visitor)
- Specified by:
acceptForStepFunctionin interfaceIterationPlanNode
-
-