rdblue commented on a change in pull request #3120:
URL: https://github.com/apache/iceberg/pull/3120#discussion_r711822246
##########
File path: api/src/main/java/org/apache/iceberg/io/CloseableIterable.java
##########
@@ -117,6 +118,14 @@ public O next() {
};
}
+ static <E> CloseableIterable<E> combine(Iterable<? extends Iterable<E>>
iterable,
+ ExecutorService executorService,
+ int parallelism) {
+ Preconditions.checkNotNull(executorService, "ExecutorService shouldn't be
null");
+ Preconditions.checkArgument(parallelism > 0, "Parallelism must be > 0");
+ return new ParallelIterable<>(iterable, executorService, parallelism);
Review comment:
If parallelism is 1, this should just call `concat` right?
--
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]