org.apache.flink.optimizer.dag.BulkPartialSolutionNode Java Examples

The following examples show how to use org.apache.flink.optimizer.dag.BulkPartialSolutionNode. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BulkPartialSolutionPlanNode.java    From Flink-CEPplus with Apache License 2.0 6 votes vote down vote up
public BulkPartialSolutionPlanNode(BulkPartialSolutionNode template, String nodeName,
		GlobalProperties gProps, LocalProperties lProps,
		Channel initialInput)
{
	super(template, nodeName, DriverStrategy.NONE);
	
	this.globalProps = gProps;
	this.localProps = lProps;
	this.initialInput = initialInput;
	
	// the partial solution does not cost anything
	this.nodeCosts = NO_COSTS;
	this.cumulativeCosts = NO_COSTS;
	
	if (initialInput.getSource().branchPlan != null && initialInput.getSource().branchPlan.size() > 0) {
		if (this.branchPlan == null) {
			this.branchPlan = new HashMap<OptimizerNode, PlanNode>();
		}
		
		this.branchPlan.putAll(initialInput.getSource().branchPlan);
	}
}
 
Example #2
Source File: BulkPartialSolutionPlanNode.java    From flink with Apache License 2.0 6 votes vote down vote up
public BulkPartialSolutionPlanNode(BulkPartialSolutionNode template, String nodeName,
		GlobalProperties gProps, LocalProperties lProps,
		Channel initialInput)
{
	super(template, nodeName, DriverStrategy.NONE);
	
	this.globalProps = gProps;
	this.localProps = lProps;
	this.initialInput = initialInput;
	
	// the partial solution does not cost anything
	this.nodeCosts = NO_COSTS;
	this.cumulativeCosts = NO_COSTS;
	
	if (initialInput.getSource().branchPlan != null && initialInput.getSource().branchPlan.size() > 0) {
		if (this.branchPlan == null) {
			this.branchPlan = new HashMap<OptimizerNode, PlanNode>();
		}
		
		this.branchPlan.putAll(initialInput.getSource().branchPlan);
	}
}
 
Example #3
Source File: BulkPartialSolutionPlanNode.java    From flink with Apache License 2.0 6 votes vote down vote up
public BulkPartialSolutionPlanNode(BulkPartialSolutionNode template, String nodeName,
		GlobalProperties gProps, LocalProperties lProps,
		Channel initialInput)
{
	super(template, nodeName, DriverStrategy.NONE);
	
	this.globalProps = gProps;
	this.localProps = lProps;
	this.initialInput = initialInput;
	
	// the partial solution does not cost anything
	this.nodeCosts = NO_COSTS;
	this.cumulativeCosts = NO_COSTS;
	
	if (initialInput.getSource().branchPlan != null && initialInput.getSource().branchPlan.size() > 0) {
		if (this.branchPlan == null) {
			this.branchPlan = new HashMap<OptimizerNode, PlanNode>();
		}
		
		this.branchPlan.putAll(initialInput.getSource().branchPlan);
	}
}
 
Example #4
Source File: BulkPartialSolutionPlanNode.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
public BulkPartialSolutionNode getPartialSolutionNode() {
	return (BulkPartialSolutionNode) this.template;
}
 
Example #5
Source File: BulkPartialSolutionPlanNode.java    From flink with Apache License 2.0 4 votes vote down vote up
public BulkPartialSolutionNode getPartialSolutionNode() {
	return (BulkPartialSolutionNode) this.template;
}
 
Example #6
Source File: BulkPartialSolutionPlanNode.java    From flink with Apache License 2.0 4 votes vote down vote up
public BulkPartialSolutionNode getPartialSolutionNode() {
	return (BulkPartialSolutionNode) this.template;
}