I have the following code running in Java Spark:
ZipFile zipFile = new ZipFile(zipFilePath);
Enumeration<? extends ZipEnter> entries = zipFiles.entries();
while(entries.hasMoreElements()) {
ZipEntry entry = entries.nextElement();
//my logic...
}
I want to do the code above in parallel with Spark or Java parallel, How can I do it?
Thanks