xiarixiaoyao commented on a change in pull request #3203:
URL: https://github.com/apache/hudi/pull/3203#discussion_r725737689



##########
File path: 
hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/utils/HoodieRealtimeInputFormatUtils.java
##########
@@ -161,6 +185,21 @@
     return rtSplits.toArray(new InputSplit[0]);
   }
 
+  public static RealtimeBootstrapBaseFileSplit 
createRealimeBootstrapBaseFileSplit(
+      BootstrapBaseFileSplit split, String basePath, List<String> 
deltaLogPaths, String maxInstantTime) {
+    try {
+      String[] hosts = split.getLocationInfo() != null ? 
Arrays.stream(split.getLocationInfo())
+          .filter(x -> !x.isInMemory()).toArray(String[]::new) : new String[0];
+      String[] inMemoryHosts = split.getLocationInfo() != null ? 
Arrays.stream(split.getLocationInfo())
+          .filter(SplitLocationInfo::isInMemory).toArray(String[]::new) : new 
String[0];
+      FileSplit baseSplit = new FileSplit(split.getPath(), split.getStart(), 
split.getLength(),

Review comment:
       maybe no need。
   by the way。those codes come from line 137 — line 142 in original 
HoodieRealtimeInputFormatUtils.java。 i just extract those code to make a 
function。 




-- 
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