Skip to content

Commit

Permalink
#14 [euphoria-flink] Allow WindowAssigner operator chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
vanekjar committed Mar 24, 2017
1 parent ed1b514 commit 29538db
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import org.apache.flink.streaming.api.datastream.DataStream;
import org.apache.flink.streaming.api.functions.timestamps.BoundedOutOfOrdernessTimestampExtractor;
import org.apache.flink.streaming.api.operators.AbstractStreamOperator;
import org.apache.flink.streaming.api.operators.ChainingStrategy;
import org.apache.flink.streaming.api.operators.OneInputStreamOperator;
import org.apache.flink.streaming.runtime.streamrecord.StreamRecord;

Expand Down Expand Up @@ -149,6 +150,9 @@ private static class WindowAssignerOperator

private WindowAssignerOperator(WindowAssigner windowAssigner) {
this.windowAssigner = windowAssigner;

// allow chaining to optimize performance
this.chainingStrategy = ChainingStrategy.ALWAYS;
}

@Override
Expand Down

0 comments on commit 29538db

Please sign in to comment.