public class CollectorWrapper<OUT> extends Object implements Output<StreamRecord<OUT>>
| Constructor and Description |
|---|
CollectorWrapper(OutputSelectorWrapper<OUT> outputSelectorWrapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCollector(Output<StreamRecord<OUT>> output,
StreamEdge edge) |
void |
close() |
void |
collect(StreamRecord<OUT> record) |
void |
emitWatermark(Watermark mark)
Emits a
Watermark from an operator. |
public CollectorWrapper(OutputSelectorWrapper<OUT> outputSelectorWrapper)
public void addCollector(Output<StreamRecord<OUT>> output, StreamEdge edge)
public void collect(StreamRecord<OUT> record)
collect in interface Collector<StreamRecord<OUT>>public void emitWatermark(Watermark mark)
OutputWatermark from an operator. This watermark is broadcast to all downstream
operators.
A watermark specifies that no element with a timestamp older or equal to the watermark timestamp will be emitted in the future.
emitWatermark in interface Output<StreamRecord<OUT>>public void close()
close in interface Collector<StreamRecord<OUT>>Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.