public class OptimizedPlan extends Object implements Visitable<PlanNode>
| Constructor and Description |
|---|
OptimizedPlan(Collection<SourcePlanNode> sources,
Collection<SinkPlanNode> sinks,
Collection<PlanNode> allNodes,
String jobName,
Plan pactPlan)
Creates a new instance of this optimizer plan container.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor<PlanNode> visitor)
Takes the given visitor and applies it top down to all nodes, starting at the sinks.
|
Collection<PlanNode> |
getAllNodes()
Gets all the nodes from this OptimizedPlan.
|
Collection<SinkPlanNode> |
getDataSinks()
Gets the data sinks from this OptimizedPlan.
|
Collection<SourcePlanNode> |
getDataSources()
Gets the data sources from this OptimizedPlan.
|
String |
getInstanceTypeName()
Gets the name of the instance type that should be used for this PACT job.
|
String |
getJobName()
Returns the name of the optimized PACT job.
|
Plan |
getOriginalPactPlan()
Gets the original pact plan from which this optimized plan was created.
|
void |
setInstanceTypeName(String instanceTypeName)
Sets the name of the instance type that should be used for this PACT job.
|
public OptimizedPlan(Collection<SourcePlanNode> sources, Collection<SinkPlanNode> sinks, Collection<PlanNode> allNodes, String jobName, Plan pactPlan)
sources - The nodes describing the data sources.sinks - The nodes describing the data sinks.allNodes - A collection containing all nodes in the plan.jobName - The name of the PACT jobpublic Collection<SourcePlanNode> getDataSources()
public Collection<SinkPlanNode> getDataSinks()
public Collection<PlanNode> getAllNodes()
public String getJobName()
public Plan getOriginalPactPlan()
public String getInstanceTypeName()
public void setInstanceTypeName(String instanceTypeName)
instanceTypeName - The name of the instance type.public void accept(Visitor<PlanNode> visitor)
accept in interface Visitable<PlanNode>visitor - The visitor to apply to the nodes in this plan.Visitable.accept(org.apache.flink.util.Visitor)Copyright © 2014 The Apache Software Foundation. All rights reserved.