RanJinh commented on code in PR #23000:
URL: https://github.com/apache/flink/pull/23000#discussion_r1268169556


##########
flink-core/src/main/java/org/apache/flink/api/common/functions/Function.java:
##########
@@ -27,4 +28,16 @@
  * method) interfaces that can be implemented via Java 8 lambdas.
  */
 @Public
-public interface Function extends java.io.Serializable {}
+public interface Function extends java.io.Serializable {
+    /** Returns true iff the operator can only emit records after inputs have 
reached EOF. */
+    @Internal
+    default boolean isOutputEOF() {

Review Comment:
   It's more reasonable to overwrite `OperatorAttribute` in an operator, now 
you can see the new usage in  
`StreamingJobGraphGeneratorTest#testOverwriteOperatorAttributesPartitionTypes`.



-- 
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.

To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to