Class OperatorVertexOutputCollector<O>
- java.lang.Object
-
- org.apache.nemo.runtime.executor.datatransfer.OperatorVertexOutputCollector<O>
-
- Type Parameters:
O
- output type.
- All Implemented Interfaces:
java.io.Serializable
,OutputCollector<O>
public final class OperatorVertexOutputCollector<O> extends java.lang.Object implements OutputCollector<O>
OutputCollector implementation. This emits four types of outputs 1) internal main outputs: this output becomes the input of internal Transforms 2) internal additional outputs: this additional output becomes the input of internal Transforms 3) external main outputs: this external output is emitted to OutputWriter 4) external additional outputs: this external output is emitted to OutputWriter- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OperatorVertexOutputCollector(IRVertex irVertex, java.util.List<NextIntraTaskOperatorInfo> internalMainOutputs, java.util.Map<java.lang.String,java.util.List<NextIntraTaskOperatorInfo>> internalAdditionalOutputs, java.util.List<OutputWriter> externalMainOutputs, java.util.Map<java.lang.String,java.util.List<OutputWriter>> externalAdditionalOutputs)
Constructor of the output collector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> void
emit(java.lang.String dstVertexId, T output)
Multi-destination emit.void
emit(O output)
Single-destination emit.void
emitLatencymark(LatencyMark latencymark)
Emit latencymark to downstream vertices.void
emitWatermark(Watermark watermark)
Emit watermark to downstream vertices.
-
-
-
Constructor Detail
-
OperatorVertexOutputCollector
public OperatorVertexOutputCollector(IRVertex irVertex, java.util.List<NextIntraTaskOperatorInfo> internalMainOutputs, java.util.Map<java.lang.String,java.util.List<NextIntraTaskOperatorInfo>> internalAdditionalOutputs, java.util.List<OutputWriter> externalMainOutputs, java.util.Map<java.lang.String,java.util.List<OutputWriter>> externalAdditionalOutputs)
Constructor of the output collector.- Parameters:
irVertex
- the ir vertex that emits the outputinternalMainOutputs
- internal main outputsinternalAdditionalOutputs
- internal additional outputsexternalMainOutputs
- external main outputsexternalAdditionalOutputs
- external additional outputs
-
-
Method Detail
-
emit
public void emit(O output)
Description copied from interface:OutputCollector
Single-destination emit.- Specified by:
emit
in interfaceOutputCollector<O>
- Parameters:
output
- value.
-
emit
public <T> void emit(java.lang.String dstVertexId, T 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<O>
- Type Parameters:
T
- output type.- Parameters:
dstVertexId
- destination vertex id.output
- value.
-
emitWatermark
public void emitWatermark(Watermark watermark)
Description copied from interface:OutputCollector
Emit watermark to downstream vertices.- Specified by:
emitWatermark
in interfaceOutputCollector<O>
- Parameters:
watermark
- watermark
-
emitLatencymark
public void emitLatencymark(LatencyMark latencymark)
Description copied from interface:OutputCollector
Emit latencymark to downstream vertices.- Specified by:
emitLatencymark
in interfaceOutputCollector<O>
- Parameters:
latencymark
- latencymark
-
-