Java Code Examples for org.apache.flink.optimizer.dag.DagConnection#setShipStrategy()
The following examples show how to use
org.apache.flink.optimizer.dag.DagConnection#setShipStrategy() .
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: UnionParallelismAndForwardEnforcer.java From Flink-CEPplus with Apache License 2.0 | 6 votes |
@Override public boolean preVisit(OptimizerNode node) { // if the current node is a union if (node instanceof BinaryUnionNode) { int parallelism = -1; // set ship strategy of all outgoing connections to FORWARD. for (DagConnection conn : node.getOutgoingConnections()) { parallelism = conn.getTarget().getParallelism(); conn.setShipStrategy(ShipStrategyType.FORWARD); } // adjust parallelism to be same as successor node.setParallelism(parallelism); } // traverse the whole plan return true; }
Example 2
Source File: UnionParallelismAndForwardEnforcer.java From flink with Apache License 2.0 | 6 votes |
@Override public boolean preVisit(OptimizerNode node) { // if the current node is a union if (node instanceof BinaryUnionNode) { int parallelism = -1; // set ship strategy of all outgoing connections to FORWARD. for (DagConnection conn : node.getOutgoingConnections()) { parallelism = conn.getTarget().getParallelism(); conn.setShipStrategy(ShipStrategyType.FORWARD); } // adjust parallelism to be same as successor node.setParallelism(parallelism); } // traverse the whole plan return true; }
Example 3
Source File: UnionParallelismAndForwardEnforcer.java From flink with Apache License 2.0 | 6 votes |
@Override public boolean preVisit(OptimizerNode node) { // if the current node is a union if (node instanceof BinaryUnionNode) { int parallelism = -1; // set ship strategy of all outgoing connections to FORWARD. for (DagConnection conn : node.getOutgoingConnections()) { parallelism = conn.getTarget().getParallelism(); conn.setShipStrategy(ShipStrategyType.FORWARD); } // adjust parallelism to be same as successor node.setParallelism(parallelism); } // traverse the whole plan return true; }