Preparation for Avro update (#2650)
This commit is contained in:
committed by
GitHub
parent
8bc65b9318
commit
aa0da72c59
@@ -34,8 +34,6 @@ import org.apache.hudi.index.HoodieIndexUtils;
|
||||
import org.apache.hudi.io.HoodieKeyLocationFetchHandle;
|
||||
import org.apache.hudi.table.HoodieTable;
|
||||
|
||||
import avro.shaded.com.google.common.collect.Lists;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
@@ -135,8 +133,8 @@ public class FlinkHoodieSimpleIndex<T extends HoodieRecordPayload> extends Flink
|
||||
context.map(latestBaseFiles, partitionPathBaseFile -> new HoodieKeyLocationFetchHandle<>(config, hoodieTable, partitionPathBaseFile), parallelism);
|
||||
Map<HoodieKey, HoodieRecordLocation> recordLocations = new HashMap<>();
|
||||
hoodieKeyLocationFetchHandles.stream()
|
||||
.flatMap(handle -> Lists.newArrayList(handle.locations()).stream())
|
||||
.forEach(x -> x.forEach(y -> recordLocations.put(y.getKey(), y.getRight())));
|
||||
.flatMap(handle -> handle.locations())
|
||||
.forEach(x -> recordLocations.put(x.getKey(), x.getRight()));
|
||||
return recordLocations;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user