yifan-c commented on code in PR #80: URL: https://github.com/apache/cassandra-analytics/pull/80#discussion_r1757673435
########## cassandra-analytics-common/src/main/java/org/apache/cassandra/spark/utils/MapUtils.java: ########## @@ -279,4 +282,19 @@ public static <T> T resolveDeprecated(Map<String, String> options, String option return deprecatedOptionValue == null ? resolver.apply(null) : deprecatedOptionValue; } + + /** + * Get the first map entry from the map + * + * @return the first map entry, if there are at least one entry in the map + * @throws NoSuchElementException if the map is emtpy + */ + public static <K, T> Map.Entry<K, T> firstEntry(@NotNull Map<K, T> map) Review Comment: ok. removing the code. It is not as useful. -- 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: commits-unsubscr...@cassandra.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org