Class OperatorWatermarkCollector
- java.lang.Object
-
- org.apache.nemo.runtime.executor.datatransfer.OperatorWatermarkCollector
-
- All Implemented Interfaces:
java.io.Serializable
,OutputCollector
public final class OperatorWatermarkCollector extends java.lang.Object implements OutputCollector
This class is used for collecting watermarks for an OperatorVertex. InputWatermarkManager emits watermarks to this class.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OperatorWatermarkCollector(OperatorVertex operatorVertex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
emit(java.lang.Object output)
Single-destination emit.void
emit(java.lang.String dstVertexId, java.lang.Object output)
Multi-destination emit.void
emitLatencymark(LatencyMark latencymakr)
Emit latencymark to downstream vertices.void
emitWatermark(Watermark watermark)
Emit watermark to downstream vertices.
-
-
-
Constructor Detail
-
OperatorWatermarkCollector
public OperatorWatermarkCollector(OperatorVertex operatorVertex)
-
-
Method Detail
-
emit
public void emit(java.lang.Object output)
Description copied from interface:OutputCollector
Single-destination emit.- Specified by:
emit
in interfaceOutputCollector
- Parameters:
output
- value.
-
emitWatermark
public void emitWatermark(Watermark watermark)
Description copied from interface:OutputCollector
Emit watermark to downstream vertices.- Specified by:
emitWatermark
in interfaceOutputCollector
- Parameters:
watermark
- watermark
-
emitLatencymark
public void emitLatencymark(LatencyMark latencymakr)
Description copied from interface:OutputCollector
Emit latencymark to downstream vertices.- Specified by:
emitLatencymark
in interfaceOutputCollector
- Parameters:
latencymakr
- latencymark
-
emit
public void emit(java.lang.String dstVertexId, java.lang.Object output)
Description copied from interface:OutputCollector
Multi-destination emit. Currently unused, but might come in handy for operations like multi-output map.- Specified by:
emit
in interfaceOutputCollector
- Parameters:
dstVertexId
- destination vertex id.output
- value.
-
-