Class WorksetUpdateOutputCollector<T>
- java.lang.Object
-
- org.apache.flink.runtime.iterative.io.WorksetUpdateOutputCollector<T>
-
- All Implemented Interfaces:
Collector<T>
public class WorksetUpdateOutputCollector<T> extends Object implements Collector<T>
ACollector
to update the iteration workset (partial solution for bulk iterations).The records are written to a
DataOutputView
to allow in-memory data exchange.
-
-
Constructor Summary
Constructors Constructor Description WorksetUpdateOutputCollector(DataOutputView outputView, TypeSerializer<T> serializer)
WorksetUpdateOutputCollector(DataOutputView outputView, TypeSerializer<T> serializer, Collector<T> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes the collector.void
collect(T record)
Emits a record.long
getElementsCollectedAndReset()
-
-
-
Constructor Detail
-
WorksetUpdateOutputCollector
public WorksetUpdateOutputCollector(DataOutputView outputView, TypeSerializer<T> serializer)
-
WorksetUpdateOutputCollector
public WorksetUpdateOutputCollector(DataOutputView outputView, TypeSerializer<T> serializer, Collector<T> delegate)
-
-