danny0405 commented on code in PR #7196:
URL: https://github.com/apache/hudi/pull/7196#discussion_r1022491991


##########
hudi-common/src/main/java/org/apache/hudi/common/fs/FSUtils.java:
##########
@@ -780,6 +780,22 @@ public static <T> Map<String, T> parallelizeFilesProcess(
     return result;
   }
 
+  public static <T, R> Map<T, R> parallelizeProcess(
+      HoodieEngineContext hoodieEngineContext,
+      int parallelism,
+      SerializableFunction<T, R> pairFunction,

Review Comment:
   Seems a general method for parallel processing, should not put it in 
`FSUtils`, maybe we can add a similar tool method as 
`HoodieTimelineArchiver#deleteFilesParallelize` for hoodie instants, for 
example `HoodieTimelineArchiver#deleteInstantsParallelize`



-- 
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...@hudi.apache.org

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

Reply via email to