Package org.apache.flink.optimizer.plan
Class SourcePlanNode
- java.lang.Object
-
- org.apache.flink.optimizer.plan.PlanNode
-
- org.apache.flink.optimizer.plan.SourcePlanNode
-
- All Implemented Interfaces:
DumpableNode<PlanNode>,org.apache.flink.util.Visitable<PlanNode>
public class SourcePlanNode extends PlanNode
Plan candidate node for data flow sources that have no input and no special strategies.
-
-
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.PlanNode
branchPlan, cumulativeCosts, globalProps, localProps, nodeCosts, outChannels, template
-
-
Constructor Summary
Constructors Constructor Description SourcePlanNode(DataSourceNode template, String nodeName)Constructs a new source candidate node that uses NONE as its local strategy.SourcePlanNode(DataSourceNode template, String nodeName, GlobalProperties gprops, LocalProperties lprops)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(org.apache.flink.util.Visitor<PlanNode> visitor)DataSourceNodegetDataSourceNode()Iterable<Channel>getInputs()Iterable<PlanNode>getPredecessors()Gets an iterator over the predecessors.org.apache.flink.api.common.typeutils.TypeSerializerFactory<?>getSerializer()Gets the serializer from this PlanNode.PlanNode.SourceAndDamReporthasDamOnPathDownTo(PlanNode source)Checks whether this node has a dam on the way down to the given source node.voidsetSerializer(org.apache.flink.api.common.typeutils.TypeSerializerFactory<?> serializer)Sets the serializer for this PlanNode.-
Methods inherited from class org.apache.flink.optimizer.plan.PlanNode
addOutgoingChannel, checkPartialSolutionPropertiesMet, getBranchPlan, getBroadcastInputs, getCandidateAtBranchPoint, getCostWeight, getCumulativeCosts, getCumulativeCostsShare, getDriverStrategy, getDumpableInputs, getGlobalProperties, getGuaranteedAvailableMemory, getLocalProperties, getMemoryConsumerWeight, getMinResources, getNodeCosts, getNodeName, getOptimizerNode, getOriginalOptimizerNode, getOutgoingChannels, getParallelism, getPlanNode, getPreferredResources, getProgramOperator, getRelativeMemoryPerSubTask, initProperties, isOnDynamicPath, isPruneMarkerSet, mergeBranchPlanMaps, mergeBranchPlanMaps, setBroadcastInputs, setCosts, setDriverStrategy, setParallelism, setPruningMarker, setRelativeMemoryPerSubtask, toString, updatePropertiesWithUniqueSets
-
-
-
-
Constructor Detail
-
SourcePlanNode
public SourcePlanNode(DataSourceNode template, String nodeName)
Constructs a new source candidate node that uses NONE as its local strategy.- Parameters:
template- The template optimizer node that this candidate is created for.
-
SourcePlanNode
public SourcePlanNode(DataSourceNode template, String nodeName, GlobalProperties gprops, LocalProperties lprops)
-
-
Method Detail
-
getDataSourceNode
public DataSourceNode getDataSourceNode()
-
getSerializer
public org.apache.flink.api.common.typeutils.TypeSerializerFactory<?> getSerializer()
Gets the serializer from this PlanNode.- Returns:
- The serializer.
-
setSerializer
public void setSerializer(org.apache.flink.api.common.typeutils.TypeSerializerFactory<?> serializer)
Sets the serializer for this PlanNode.- Parameters:
serializer- The serializer to set.
-
accept
public void accept(org.apache.flink.util.Visitor<PlanNode> visitor)
-
getPredecessors
public Iterable<PlanNode> getPredecessors()
Description copied from interface:DumpableNodeGets an iterator over the predecessors.- Specified by:
getPredecessorsin interfaceDumpableNode<PlanNode>- Specified by:
getPredecessorsin classPlanNode- Returns:
- An iterator over the predecessors.
-
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.- Specified by:
hasDamOnPathDownToin classPlanNode- 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.
-
-