public class WorksetUpdateOutputCollector<T> extends Object implements org.apache.flink.util.Collector<T>
Collector to update the iteration workset (partial solution for bulk iterations).
The records are written to a DataOutputView to allow in-memory data exchange.
| Constructor and Description |
|---|
WorksetUpdateOutputCollector(org.apache.flink.core.memory.DataOutputView outputView,
org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer) |
WorksetUpdateOutputCollector(org.apache.flink.core.memory.DataOutputView outputView,
org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer,
org.apache.flink.util.Collector<T> delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
collect(T record) |
long |
getElementsCollectedAndReset() |
public WorksetUpdateOutputCollector(org.apache.flink.core.memory.DataOutputView outputView,
org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer)
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.