Class GBKTransform.GBKOutputCollector
- java.lang.Object
-
- org.apache.nemo.compiler.frontend.beam.transform.GBKTransform.GBKOutputCollector
-
- All Implemented Interfaces:
java.io.Serializable
,OutputCollector<org.apache.beam.sdk.util.WindowedValue<org.apache.beam.sdk.values.KV<K,OutputT>>>
- Enclosing class:
- GBKTransform<K,InputT,OutputT>
public class GBKTransform.GBKOutputCollector extends java.lang.Object implements OutputCollector<org.apache.beam.sdk.util.WindowedValue<org.apache.beam.sdk.values.KV<K,OutputT>>>
Wrapper class forOutputCollector
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GBKOutputCollector(OutputCollector oc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> void
emit(java.lang.String dstVertexId, T output)
Emit output value todstVertexId
.void
emit(org.apache.beam.sdk.util.WindowedValue<org.apache.beam.sdk.values.KV<K,OutputT>> output)
Emit output.void
emitLatencymark(LatencyMark latencymark)
Emit latencymark.void
emitWatermark(Watermark watermark)
Emit watermark.
-
-
-
Constructor Detail
-
GBKOutputCollector
public GBKOutputCollector(OutputCollector oc)
-
-
Method Detail
-
emit
public final void emit(org.apache.beam.sdk.util.WindowedValue<org.apache.beam.sdk.values.KV<K,OutputT>> output)
Emit output. Ifoutput
is emitted on-time, save its timestamp in the output watermark map.- Specified by:
emit
in interfaceOutputCollector<org.apache.beam.sdk.util.WindowedValue<org.apache.beam.sdk.values.KV<K,OutputT>>>
- Parameters:
output
- value.
-
emitLatencymark
public final void emitLatencymark(LatencyMark latencymark)
Emit latencymark.- Specified by:
emitLatencymark
in interfaceOutputCollector<org.apache.beam.sdk.util.WindowedValue<org.apache.beam.sdk.values.KV<K,OutputT>>>
- Parameters:
latencymark
- latencymark
-
emitWatermark
public final void emitWatermark(Watermark watermark)
Emit watermark.- Specified by:
emitWatermark
in interfaceOutputCollector<org.apache.beam.sdk.util.WindowedValue<org.apache.beam.sdk.values.KV<K,OutputT>>>
- Parameters:
watermark
- watermark
-
emit
public final <T> void emit(java.lang.String dstVertexId, T output)
Emit output value todstVertexId
.- Specified by:
emit
in interfaceOutputCollector<org.apache.beam.sdk.util.WindowedValue<org.apache.beam.sdk.values.KV<K,OutputT>>>
- Type Parameters:
T
- output type.- Parameters:
dstVertexId
- destination vertex id.output
- value.
-
-