rdblue commented on a change in pull request #3120:
URL: https://github.com/apache/iceberg/pull/3120#discussion_r742115311
##########
File path: api/src/main/java/org/apache/iceberg/io/ParallelIterable.java
##########
@@ -28,25 +28,39 @@
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Future;
import org.apache.iceberg.exceptions.RuntimeIOException;
-import org.apache.iceberg.io.CloseableGroup;
-import org.apache.iceberg.io.CloseableIterable;
-import org.apache.iceberg.io.CloseableIterator;
import org.apache.iceberg.relocated.com.google.common.base.Preconditions;
import org.apache.iceberg.relocated.com.google.common.collect.Iterables;
+/**
+ * Run iterables in parallel.
+ * @deprecated please use {@link CloseableIterable#combine(Iterable,
ExecutorService, int)} instead.
+ */
+@Deprecated
public class ParallelIterable<T> extends CloseableGroup implements
CloseableIterable<T> {
private final Iterable<? extends Iterable<T>> iterables;
private final ExecutorService workerPool;
+ private final int workerPoolSize;
+ /**
+ * @deprecated please use {@link CloseableIterable#combine(Iterable,
ExecutorService, int)} instead.
+ */
+ @Deprecated
public ParallelIterable(Iterable<? extends Iterable<T>> iterables,
ExecutorService workerPool) {
+ this(iterables, workerPool, Runtime.getRuntime().availableProcessors());
+ }
+
+ ParallelIterable(Iterable<? extends Iterable<T>> iterables,
+ ExecutorService workerPool,
+ int workerPoolSize) {
Review comment:
Can you fix the indentation here?
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]