/** * Sets the {@link ChainingStrategy} for the given operator affecting the * way operators will possibly be co-located on the same thread for * increased performance. * * @param strategy * The selected {@link ChainingStrategy} * @return The operator with the modified chaining strategy */ @PublicEvolving private SingleOutputStreamOperator<T> setChainingStrategy(ChainingStrategy strategy) { this.transformation.setChainingStrategy(strategy); return this; }
/** * Turns off chaining for this operator so thread co-location will not be * used as an optimization. * <p/> * <p/> * Chaining can be turned off for the whole * job by {@link org.apache.flink.streaming.api.environment.StreamExecutionEnvironment#disableOperatorChaining()} * however it is not advised for performance considerations. * * @return The sink with chaining disabled */ public CassandraSink<IN> disableChaining() { if (useDataStreamSink) { getSinkTransformation().setChainingStrategy(ChainingStrategy.NEVER); } else { getStreamTransformation().setChainingStrategy(ChainingStrategy.NEVER); } return this; }
/** * Sets the {@link ChainingStrategy} for the given operator affecting the * way operators will possibly be co-located on the same thread for * increased performance. * * @param strategy * The selected {@link ChainingStrategy} * @return The operator with the modified chaining strategy */ @PublicEvolving private SingleOutputStreamOperator<T> setChainingStrategy(ChainingStrategy strategy) { this.transformation.setChainingStrategy(strategy); return this; }
/** * Sets the {@link ChainingStrategy} for the given operator affecting the * way operators will possibly be co-located on the same thread for * increased performance. * * @param strategy * The selected {@link ChainingStrategy} * @return The operator with the modified chaining strategy */ @PublicEvolving private SingleOutputStreamOperator<T> setChainingStrategy(ChainingStrategy strategy) { this.transformation.setChainingStrategy(strategy); return this; }
/** * Sets the {@link ChainingStrategy} for the given operator affecting the * way operators will possibly be co-located on the same thread for * increased performance. * * @param strategy * The selected {@link ChainingStrategy} * @return The operator with the modified chaining strategy */ @PublicEvolving private SingleOutputStreamOperator<T> setChainingStrategy(ChainingStrategy strategy) { this.transformation.setChainingStrategy(strategy); return this; }