WencongLiu commented on code in PR #23905:
URL: https://github.com/apache/flink/pull/23905#discussion_r1440106155


##########
flink-core/src/main/java/org/apache/flink/api/common/functions/RuntimeContext.java:
##########
@@ -473,4 +520,26 @@ <IN, ACC, OUT> AggregatingState<IN, OUT> 
getAggregatingState(
      */
     @PublicEvolving
     <UK, UV> MapState<UK, UV> getMapState(MapStateDescriptor<UK, UV> 
stateProperties);
+
+    /**
+     * Get the meta information of current job.
+     *
+     * @return the job meta information.
+     */
+    @PublicEvolving
+    @Nullable
+    default JobInfo getJobInfo() {
+        return null;
+    }
+
+    /**
+     * Get the meta information of current task.
+     *
+     * @return the task meta information.
+     */
+    @PublicEvolving
+    @Nullable
+    default TaskInfo getTaskInfo() {
+        return null;
+    }

Review Comment:
   I've changed the default methods `getJobInfo()` and `getTaskInfo()` to be 
abstract.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to