Java Code Examples for org.apache.flink.runtime.operators.DriverStrategy#NONE

The following examples show how to use org.apache.flink.runtime.operators.DriverStrategy#NONE . 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: WorksetPlanNode.java    From flink with Apache License 2.0 6 votes vote down vote up
public WorksetPlanNode(WorksetNode template, String nodeName,
		GlobalProperties gProps, LocalProperties lProps,
		Channel initialInput)
{
	super(template, nodeName, DriverStrategy.NONE);
	
	this.globalProps = gProps;
	this.localProps = lProps;
	this.initialInput = initialInput;
	
	// the node incurs no cost
	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: SolutionSetPlanNode.java    From flink with Apache License 2.0 6 votes vote down vote up
public SolutionSetPlanNode(SolutionSetNode template, String nodeName,
		GlobalProperties gProps, LocalProperties lProps,
		Channel initialInput)
{
	super(template, nodeName, DriverStrategy.NONE);
	
	this.globalProps = gProps;
	this.localProps = lProps;
	this.initialInput = initialInput;
	
	// the node incurs no cost
	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-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 4
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 5
Source File: SolutionSetPlanNode.java    From Flink-CEPplus with Apache License 2.0 6 votes vote down vote up
public SolutionSetPlanNode(SolutionSetNode template, String nodeName,
		GlobalProperties gProps, LocalProperties lProps,
		Channel initialInput)
{
	super(template, nodeName, DriverStrategy.NONE);
	
	this.globalProps = gProps;
	this.localProps = lProps;
	this.initialInput = initialInput;
	
	// the node incurs no cost
	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 6
Source File: WorksetPlanNode.java    From Flink-CEPplus with Apache License 2.0 6 votes vote down vote up
public WorksetPlanNode(WorksetNode template, String nodeName,
		GlobalProperties gProps, LocalProperties lProps,
		Channel initialInput)
{
	super(template, nodeName, DriverStrategy.NONE);
	
	this.globalProps = gProps;
	this.localProps = lProps;
	this.initialInput = initialInput;
	
	// the node incurs no cost
	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 7
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 8
Source File: TaskConfig.java    From flink with Apache License 2.0 5 votes vote down vote up
public DriverStrategy getDriverStrategy() {
	final int ls = this.config.getInteger(DRIVER_STRATEGY, -1);
	if (ls == -1) {
		return DriverStrategy.NONE;
	} else if (ls < 0 || ls >= DriverStrategy.values().length) {
		throw new CorruptConfigurationException("Illegal driver strategy in configuration: " + ls);
	} else {
		return DriverStrategy.values()[ls];
	}
}
 
Example 9
Source File: SourcePlanNode.java    From flink with Apache License 2.0 5 votes vote down vote up
public SourcePlanNode(DataSourceNode template, String nodeName, GlobalProperties gprops, LocalProperties lprops) {
	super(template, nodeName, DriverStrategy.NONE);

	this.globalProps = gprops;
	this.localProps = lprops;
	updatePropertiesWithUniqueSets(template.getUniqueFields());
}
 
Example 10
Source File: SinkPlanNode.java    From flink with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs a new sink candidate node that uses <i>NONE</i> as its local strategy. Note that
 * local sorting and range partitioning are handled by the incoming channel already.
 * 
 * @param template The template optimizer node that this candidate is created for.
 */
public SinkPlanNode(DataSinkNode template, String nodeName, Channel input) {
	super(template, nodeName, input, DriverStrategy.NONE);
	
	this.globalProps = input.getGlobalProperties().clone();
	this.localProps = input.getLocalProperties().clone();
}
 
Example 11
Source File: NAryUnionPlanNode.java    From flink with Apache License 2.0 5 votes vote down vote up
/**
 * @param template
 */
public NAryUnionPlanNode(BinaryUnionNode template, List<Channel> inputs, GlobalProperties gProps,
		Costs cumulativeCosts)
{
	super(template, "Union", DriverStrategy.NONE);
	
	this.inputs = inputs;
	this.globalProps = gProps;
	this.localProps = new LocalProperties();
	this.nodeCosts = new Costs();
	this.cumulativeCosts = cumulativeCosts;
}
 
Example 12
Source File: SinkPlanNode.java    From flink with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs a new sink candidate node that uses <i>NONE</i> as its local strategy. Note that
 * local sorting and range partitioning are handled by the incoming channel already.
 * 
 * @param template The template optimizer node that this candidate is created for.
 */
public SinkPlanNode(DataSinkNode template, String nodeName, Channel input) {
	super(template, nodeName, input, DriverStrategy.NONE);
	
	this.globalProps = input.getGlobalProperties().clone();
	this.localProps = input.getLocalProperties().clone();
}
 
Example 13
Source File: SourcePlanNode.java    From flink with Apache License 2.0 5 votes vote down vote up
public SourcePlanNode(DataSourceNode template, String nodeName, GlobalProperties gprops, LocalProperties lprops) {
	super(template, nodeName, DriverStrategy.NONE);

	this.globalProps = gprops;
	this.localProps = lprops;
	updatePropertiesWithUniqueSets(template.getUniqueFields());
}
 
Example 14
Source File: TaskConfig.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
public DriverStrategy getDriverStrategy() {
	final int ls = this.config.getInteger(DRIVER_STRATEGY, -1);
	if (ls == -1) {
		return DriverStrategy.NONE;
	} else if (ls < 0 || ls >= DriverStrategy.values().length) {
		throw new CorruptConfigurationException("Illegal driver strategy in configuration: " + ls);
	} else {
		return DriverStrategy.values()[ls];
	}
}
 
Example 15
Source File: NAryUnionPlanNode.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
/**
 * @param template
 */
public NAryUnionPlanNode(BinaryUnionNode template, List<Channel> inputs, GlobalProperties gProps,
		Costs cumulativeCosts)
{
	super(template, "Union", DriverStrategy.NONE);
	
	this.inputs = inputs;
	this.globalProps = gProps;
	this.localProps = new LocalProperties();
	this.nodeCosts = new Costs();
	this.cumulativeCosts = cumulativeCosts;
}
 
Example 16
Source File: BulkIterationPlanNode.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
public BulkIterationPlanNode(BulkIterationNode template, String nodeName, Channel input,
		BulkPartialSolutionPlanNode pspn, PlanNode rootOfStepFunction)
{
	super(template, nodeName, input, DriverStrategy.NONE);
	this.partialSolutionPlanNode = pspn;
	this.rootOfStepFunction = rootOfStepFunction;

	mergeBranchPlanMaps();
}
 
Example 17
Source File: SourcePlanNode.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
public SourcePlanNode(DataSourceNode template, String nodeName, GlobalProperties gprops, LocalProperties lprops) {
	super(template, nodeName, DriverStrategy.NONE);

	this.globalProps = gprops;
	this.localProps = lprops;
	updatePropertiesWithUniqueSets(template.getUniqueFields());
}
 
Example 18
Source File: WorksetIterationNode.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public DriverStrategy getStrategy() {
	return DriverStrategy.NONE;
}
 
Example 19
Source File: WorksetIterationNode.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public DriverStrategy getStrategy() {
	return DriverStrategy.NONE;
}
 
Example 20
Source File: WorksetIterationNode.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Override
public DriverStrategy getStrategy() {
	return DriverStrategy.NONE;
}