public abstract class WrappingCollector<T>
extends org.apache.flink.api.common.functions.AbstractRichFunction
implements org.apache.flink.util.Collector<T>
Collector that wraps another collector. An implementation can decide when to emit to
the wrapped collector.| Constructor and Description |
|---|
WrappingCollector() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
outputResult(T result)
Outputs the final result to the wrapped collector.
|
void |
setCollector(org.apache.flink.util.Collector<T> collector)
Sets the current collector which is used to emit the final result.
|
getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContextpublic void setCollector(org.apache.flink.util.Collector<T> collector)
public void outputResult(T result)
public void close()
close in interface org.apache.flink.api.common.functions.RichFunctionclose in interface org.apache.flink.util.Collector<T>close in class org.apache.flink.api.common.functions.AbstractRichFunctionCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.