vinothchandar commented on code in PR #19212:
URL: https://github.com/apache/hudi/pull/19212#discussion_r3568298939
##########
hudi-common/src/main/java/org/apache/hudi/common/util/ConfigUtils.java:
##########
@@ -411,6 +411,32 @@ public static Option<Object>
getRawValueWithAltKeys(Properties props,
return Option.empty();
}
+ /**
+ * Gets the raw value for a {@link ConfigProperty} config using a key
mapping function. The key
+ * and alternative keys are used to fetch the config. Unlike
+ * {@link #getStringWithAltKeys(Function, ConfigProperty)}, this does not
fall back to the
+ * config's default value when the config is not found.
+ *
+ * @param keyMapper Mapper function to map the key to values.
+ * @param configProperty {@link ConfigProperty} config to fetch.
+ * @return {@link Option} of value if the config exists; empty {@link
Option} otherwise.
+ */
+ public static Option<Object> getRawValueWithAltKeys(Function<String, Object>
keyMapper,
Review Comment:
yes
--
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]