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:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Iterable<T>
,CloseableIterable<T>
public class ParallelIterable<T> extends CloseableGroup implements CloseableIterable<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.iceberg.io.CloseableIterable
CloseableIterable.ConcatCloseableIterable<E>
-
-
Constructor Summary
Constructors Constructor Description ParallelIterable(java.lang.Iterable<? extends java.lang.Iterable<T>> iterables, java.util.concurrent.ExecutorService workerPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloseableIterator<T>
iterator()
Returns a closeable iterator over elements of typeT
.-
Methods inherited from class org.apache.iceberg.io.CloseableGroup
addCloseable, addCloseable, close, setSuppressCloseFailure
-
-
-
-
Constructor Detail
-
ParallelIterable
public ParallelIterable(java.lang.Iterable<? extends java.lang.Iterable<T>> iterables, java.util.concurrent.ExecutorService workerPool)
-
-
Method Detail
-
iterator
public CloseableIterator<T> iterator()
Description copied from interface:CloseableIterable
Returns a closeable iterator over elements of typeT
.- Specified by:
iterator
in interfaceCloseableIterable<T>
- Specified by:
iterator
in interfacejava.lang.Iterable<T>
- Returns:
- an
CloseableIterator
.
-
-