Changes

Summary

  1. Improve efficiency during the handling of "Payloads", by: (details)
Commit 2adcc1a1c3b02e91d13ff1820fd4ae244f4a2180 by Lampros Smyrnaios
Improve efficiency during the handling of "Payloads", by:
- Changing the "fileUtils.addPayloadsByMatchingRecordsFromBacklog()" (renamed from "ileUtils.addUrlReportsByMatchingRecordsFromBacklog()"), to return the payloads, instead of updating the "urlReports" which were then not used to create "attempts".
- Changing the "parquetFIleUtils.createPayloadParquetDataAndUploadToHDFS()" to iterate directly over the "location-cleaned" "payload"-list, instead of extracting and filtering the payloads from the "urlReports"-list.
- Use simply "stream()" instead of "parallelStream()" in "fileUtils.getAndUploadFiles()", since it is not worth the overhead in our case.
The file was modifiedsrc/main/java/eu/openaire/urls_controller/util/ParquetFileUtils.java (diff)
The file was modifiedsrc/main/java/eu/openaire/urls_controller/util/FileUtils.java (diff)
The file was modifiedsrc/main/java/eu/openaire/urls_controller/util/FilesHandler.java (diff)