GJL commented on a change in pull request #7883: [FLINK-11781][yarn] Remove 
"DISABLED" as possible value for yarn.per-job-cluster.include-user-jar
URL: https://github.com/apache/flink/pull/7883#discussion_r262563787
 
 

 ##########
 File path: 
flink-core/src/main/java/org/apache/flink/configuration/Configuration.java
 ##########
 @@ -608,6 +610,33 @@ public String getValue(ConfigOption<?> configOption) {
                return o == null ? null : o.toString();
        }
 
+       /**
+        * Returns the value associated with the given config option as an enum.
+        *
+        * @param enumClass    The return enum class
+        * @param configOption The configuration option
+        * @throws IllegalArgumentException If the string associated with the 
given config option cannot
+        *                                  be parsed as a value of the 
provided enum class.
+        */
+       @PublicEvolving
+       public <T extends Enum<T>> T getAsEnum(
 
 Review comment:
   I think you are right. It differs a bit though in the sense that 
`ConfigOption<Enum>` is not possible. On the other hand there is `getBytes`

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to