zhijiangW commented on a change in pull request #9717: [FLINK-14044] [runtime] 
Reducing synchronization in AsyncWaitOperator
URL: https://github.com/apache/flink/pull/9717#discussion_r328459063
 
 

 ##########
 File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/operators/TimestampedCollector.java
 ##########
 @@ -71,4 +73,19 @@ public void eraseTimestamp() {
        public void close() {
                output.close();
        }
+
+       @Override
+       public void emitWatermark(Watermark mark) {
+               output.emitWatermark(mark);
+       }
+
+       @Override
+       public <X> void collect(OutputTag<X> outputTag, StreamRecord<X> record) 
{
 
 Review comment:
   It is involved in three new methods by implementing `Output` interface 
instead. But actually we only need the `emitWatermark` method, and the left two 
methods would never be touched in codes. If so, another option is that we can 
only define `emitWatermark` method here and still implement `Collector` 
interface.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to