T - Record Type.E - Extra message of one RecordReader.public class ParallelExecution<T,E> extends Object implements Closeable
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
ParallelExecution.ParallelBatch<T,E>
A batch provides next and extra message.
|
| 构造器和说明 |
|---|
ParallelExecution(Serializer<T> serializer,
int pageSize,
int parallelism,
List<java.util.function.Supplier<Pair<RecordReader<T>,E>>> readers) |
public ParallelExecution(Serializer<T> serializer, int pageSize, int parallelism, List<java.util.function.Supplier<Pair<RecordReader<T>,E>>> readers)
@Nullable public ParallelExecution.ParallelBatch<T,E> take() throws InterruptedException, IOException
public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.