Package org.apache.iceberg.util
Class ParallelIterable<T>
java.lang.Object
org.apache.iceberg.io.CloseableGroup
org.apache.iceberg.util.ParallelIterable<T>
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<T>,CloseableIterable<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.iceberg.io.CloseableIterable
CloseableIterable.ConcatCloseableIterable<E> -
Constructor Summary
ConstructorsConstructorDescriptionParallelIterable(Iterable<? extends Iterable<T>> iterables, ExecutorService workerPool) ParallelIterable(Iterable<? extends Iterable<T>> iterables, ExecutorService workerPool, int approximateMaxQueueSize) -
Method Summary
Modifier and TypeMethodDescriptioniterator()Returns a closeable iterator over elements of typeT.Methods inherited from class org.apache.iceberg.io.CloseableGroup
addCloseable, addCloseable, close, setSuppressCloseFailureMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ParallelIterable
-
ParallelIterable
public ParallelIterable(Iterable<? extends Iterable<T>> iterables, ExecutorService workerPool, int approximateMaxQueueSize)
-
-
Method Details
-
iterator
Description copied from interface:CloseableIterableReturns a closeable iterator over elements of typeT.- Specified by:
iteratorin interfaceCloseableIterable<T>- Specified by:
iteratorin interfaceIterable<T>- Returns:
- an
CloseableIterator.
-