Class DataStream.Collector<T>
- java.lang.Object
-
- org.apache.flink.streaming.api.datastream.DataStream.Collector<T>
-
- Type Parameters:
T
- the element type
- Enclosing class:
- DataStream<T>
@Experimental public static class DataStream.Collector<T> extends Object
This class acts as an accessor to elements collected viaDataStream.collectAsync(Collector)
.
-
-
Constructor Summary
Constructors Constructor Description Collector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloseableIterator<T>
getOutput()
Returns an iterator over the collected elements.
-
-
-
Method Detail
-
getOutput
public CloseableIterator<T> getOutput()
Returns an iterator over the collected elements. The returned iterator must only be used once the job execution was triggered.This method will always return the same iterator instance.
- Returns:
- iterator over collected elements
-
-