public class CollectResultIterator<T> extends Object implements org.apache.flink.util.CloseableIterator<T>
The behavior of the iterator is slightly different under different checkpointing mode.
NOTE: After using this iterator, the close method MUST be called in order to release job related resources.
| Constructor and Description |
|---|
CollectResultIterator(AbstractCollectResultBuffer<T> buffer,
CompletableFuture<org.apache.flink.runtime.jobgraph.OperatorID> operatorIdFuture,
String accumulatorName,
int retryMillis) |
CollectResultIterator(CompletableFuture<org.apache.flink.runtime.jobgraph.OperatorID> operatorIdFuture,
org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer,
String accumulatorName,
CheckpointConfig checkpointConfig,
long resultFetchTimeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
CollectResultIterator<T> |
copy() |
boolean |
hasNext() |
T |
next() |
void |
setJobClient(org.apache.flink.core.execution.JobClient jobClient) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadapterForIterator, adapterForIterator, empty, flatten, fromList, ofElement, ofElementsforEachRemaining, removepublic CollectResultIterator(CompletableFuture<org.apache.flink.runtime.jobgraph.OperatorID> operatorIdFuture, org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer, String accumulatorName, CheckpointConfig checkpointConfig, long resultFetchTimeout)
@VisibleForTesting public CollectResultIterator(AbstractCollectResultBuffer<T> buffer, CompletableFuture<org.apache.flink.runtime.jobgraph.OperatorID> operatorIdFuture, String accumulatorName, int retryMillis)
public void close()
throws Exception
close in interface AutoCloseableExceptionpublic void setJobClient(org.apache.flink.core.execution.JobClient jobClient)
public CollectResultIterator<T> copy()
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.